Controlling Hlfsd
-----------------
Much the same way Amd is controlled by `ctl-amd', so does Hlfsd get
controlled by the `ctl-hlfsd' script:
ctl-hlfsd start
Start a new Hlfsd.
ctl-hlfsd stop
Stop a running Hlfsd.
ctl-hlfsd restart
Stop a running Hlfsd, wait for 10 seconds, and then start a new
one. It is hoped that within 10 seconds, the previously running
Hlfsd terminate properly; otherwise, starting a second one could
cause system lockup.
For example, on our systems, we start Hlfsd within `ctl-hlfsd' as
follows on Solaris 2 systems:
hlfsd -a /var/alt_mail -x all -l /var/log/hlfsd /mail/home .mailspool
The directory `/var/alt_mail' is a directory in the root partition
where alternate mail will be delivered into, when it cannot be delivered
into the user's home directory.
Normal mail gets delivered into `/var/mail', but on our systems,
that is a symbolic link to `/mail/home'. `/mail' is managed by Hlfsd,
which creates a dynamic symlink named `home', pointing to the
subdirectory `.mailspool' _within_ the accessing user's home directory.
This results in mail which normally should go to `/var/mail/`$USER'',
to go to ``$HOME'/.mailspool/`$USER''.
Hlfsd does not create the `/var/mail' symlink. This needs to be
created (manually) once on each host, by the system administrators, as
follows:
mv /var/mail /var/alt_mail
ln -s /mail/home /var/mail