Quote:
Originally posted by ohcysp
You mention that the slackware package should come with an rc.d file to start autofs att boot time.
|
Well under the Slackware package scheme, what are the contents
of the slackware package, apart from the autofs daemon. Are
there any shell scripts installs in /etc/rc.d or not? I do not know
since I do not have or have used a slackware system.
Quote:
This gives me a few questions. First of all, how do I determine that the autofs is started?
|
Do you mean
A) How do I ensure that autofs
is started each time I enter a runlevel?
or
B) How do I determine that autofs
has started after I enter a runlevel?
Quote:
I guess that this script will be called in all runlevels you mention.
|
Yes, this will do what is necessary.
Quote:
My second question is, the "rc.d file"?
|
Sorry I was using "rc.d" as an adjective, ie I meant to indicate a file in the rc.d directory. Otherwise I would have said the file rc.d. It was not accurate and not clear so I offer my apology.
Quote:
Therefore, it would be nice if you could give me some examples of what you call "rc.d file" and also tell me how I need to edit my runlevels.
|
No need, since what you have done is CORRECT (for Slackware's
BSD style runlevel scheme).
Quote:
What exactly should I put in it to get automounting working
|
You do not need to put anything in /etc/fstab, and you certainly do
not put the "auto" option on an entry in there.
Even though I automount my CD-ROM I still have the entry
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
in my fstab, so that if for some reason I wish or need to do a manual
mount, I still can, but it in no way affects the automount process.
So if you have set up your /etc/auto.master and /etc/{auto/}auto.local file correctly, all should work
You should see something equivalent to this
ps -adef | egrep auto
root 686 1 0 Aug05 ? 00:00:00 /usr/sbin/automount --timeout 60 /auto/koala file /etc/auto/auto.koala
root 704 1 0 Aug05 ? 00:00:00 /usr/sbin/automount --timeout 60 /auto/local file /etc/auto/auto.local
root 728 1 0 Aug05 ? 00:00:00 /usr/sbin/automount --timeout 60 /auto/ocelot file /etc/auto/auto.ocelot
root 752 1 0 Aug05 ? 00:00:00 /usr/sbin/automount --timeout 60 /auto/wolverine file /etc/auto/auto.wolverine
root 776 1 0 Aug05 ? 00:00:00 /usr/sbin/automount --timeout 60 /net/koala/usr file /etc/auto/net.koala.usr
root 798 1 0 Aug05 ? 00:00:00 /usr/sbin/automount --timeout 60 /net/ocelot/usr file /etc/auto/net.ocelot.usr
root 822 1 0 Aug05 ? 00:00:00 /usr/sbin/automount --timeout 60 /net/wolverine/usr file /etc/auto/net.wolverine.usr
miller 8038 1786 0 01:12 pts/1 00:00:00 grep -E auto
And if you cd to the auto directory mount point
$ df -k
.
Filesystem 1K-blocks Used Available Use% Mounted on
automount(pid686) 0 0 0 - /auto/koala