Next: Performance Considerations
Up: Rebuilding from Sourcecode
Previous: Choosing the plattform
Here you will find the options you can change in the makefile to
change the behaviour of the daemon. If you do not set any of these
variables, a default value is used. Any of these options can be added
to the line OPTIONFLAGS in the makefile in the form
-D<optionname>=<value>
such as this:
-DDEFAULT_INTERVALL=3
If not indicated otherwise, you must specify a value for each option
you use. If you want the default value to be used, do not add the
option name to this line. Other options just have to be defined to
change the behaviour (they have the line ``No value must be
specified'' in their description below). These options can be added in
the following form:
-D<optionname>
Makefile options are checked and corrected if necessary (there are
some options that won't work together). This is done in the include
file process_options.h. Do not change this file, as the
restrictions imposed are necessary. You might get it to compile
using incompatible options together, but it will break at runtime
(according to Murphy's law: when you expect it least).
- DEFAULT_INTERVALL
Can be used to change the interval between the mount attempts.The
less this value gets, the more CPU intensive it becomes. Normally the
default of 5 seconds will be usable.
- DEFAULT_INIT_FILE
Set the filename of the initfile to use. This must be a string
containing a valid filename. If the file does not exist, the daemon
will not start. Note that the file is not required to have meaningful
contents, it is just has to exist.
- FIFO_NAME
Change the name of the fifo used for communication with the client.
This must be a string containing a valid filename. If the file exists,
the daemon will not start. Make sure that each user has access
permission in the directory so that the 'eject' client can write to
the fifo. Maybe you should set the sticky bit for this directory to
prevent a user to delete files of other users in that directory.
- EJECT_ON_EXIT
Used to force sending an eject command to each volume when
the server terminates. This option is not very sophisticated, as the
only supported devices are CDROM drives.
No value must be specified.
- FORCE_UNMOUNT_ON_EXIT
This option makes the daemon call unmount on each device in the init
file, whether is was mounted by the daemon or not. If this option is
used, the daemon can more easily recover from a crash (going down
without the normal exit routine while the system keeps running). In
that case you should start the daemon, stop it after a few seconds
using the kill command with either SIGTERM or SIGQUIT and
then restart it. This recovering procedure is necessary as the mounted
devices are not entered into /etc/mtab, so that they possibliy
cannot be unmounted with 'umount'.
No value must be specified.
- USE_SYSLOGD
Keep automountd from using its own logfile to be used. Use calls to
syslogd instead. See your systems manual (``man syslogd'' will give
you advice where to look for the messages sent to the syslogd
daemon).
No value must be specified.
- USE_EXTENDED_SIGARGS
Cause some signalhandlers to use additional arguments that are
provided by some Unix implementations. This feature is only used for
unexpected signals (by now only SIGSEGV is considered important), not
for the normal signals as SIGTERM or SIGHUP.
No value must be specified.
- DONT_CATCH_SIGSEGV
If you want to do debugging, you can turn off the logging of SIGSEGV to
get a more meaningful core file.
No value must be specified.
- DONT_USE_SELECT
Prevent the daemon from using select(). This option restores the
default behaviour of versions prior to 0.08.00 i.e. the daemon does not
answer client requests, but serves them during the normal activity
period (every DEFAULT_INTERVALL seconds). Without this option, client
requests are served asynchroniously.
No value must be specified.
- MONITOR_MOUNT_COUNT
This cannot be used in conjunction with DONT_USE_SELECT. Will
extend sleep periods when all monitored devices are mounted.
No value must be specified.
- DONT_EJECT
When set, this option prevents the daemon from sending the eject
command to the device.
- SKIP_ROUNDS
Used to change the intervall increase activated by the option
SKIPROUND from the default of 2.
Next: Performance Considerations
Up: Rebuilding from Sourcecode
Previous: Choosing the plattform
Fri Sep 25 18:04:42 GMT 1998