Re: Start a process at boot time

From: Dr. Tom Blinn, 603-881-0646 <tpb_at_zk3.dec.com>
Date: Thu, 18 May 95 11:45:44 -0400

> I have to mount a file system on alpha(OSF/1 V3.0) which is exported from
> Novel server(3.12) at the boot time. Due to version incompatibility I have to
> enter "mount -o nfsv2,port=2049 ..." command and I can't find a way to automate
> this process. Is there a file call /etc/rc.local like on SunOS 4.1.3 where I can
> add mount command? I checked in /etc/rc.config but I am not sure it is right
> place.

Have you tried putting the mount options in the /etc/fstab file, as
documented in the fstab(4) reference page?

NFS file systems are mounted by the /sbin/init.d/nfsmount shell script as
part of the processing of /sbin/rc3.d during startup. The S20nfsmount
symbolic link in /sbin/rc3.d points to /sbin/init.d/nfsmount. The script is
trivial, but you probably shouldn't modify it.

The fstab(4) reference page says this:

  The fourth field, (mnt_options), describes the mount options associated
  with the file system or partition. It is formatted as a comma separated
  list of options and contains at least the type of mount (see the fs_type
  field) plus any additional options appropriate to the file system type or
  the partition use. You can specify the following mount options:

and then goes on to list the mount options, such as "rw".

Try making your mount options for this file system be "rw,nfsv2,port=2049"
or "ro,nfsv2,port=2049" if that's more appropriate.

Seek and ye shall find..

Tom
 
 Dr. Thomas P. Blinn, UNIX Software Group, Digital Equipment Corporation
  110 Spit Brook Road, MS ZKO3-2/U20 Nashua, New Hampshire 03062-2698
   Technology Partnership Engineering Phone: (603) 881-0646
    Internet: tpb_at_zk3.dec.com Digital's Easynet: alpha::tpb

  Worry kills more people than work because more people worry than work.

     My favorite palindrome is: Satan, oscillate my metallic sonatas.
                                         -- Phil Agre, pagre_at_ucsd.edu

  Opinions expressed herein are my own, and do not necessarily represent
  those of my employer or anyone else, living or dead, real or imagined.
 
Received on Thu May 18 1995 - 11:46:30 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:45 NZDT