Copyright (C) 2000-2012 |
GNU Info (am-utils.info)Amd Command Line OptionsAmd Command Line Options ************************ Many of Amd's parameters can be set from the command line. The command line is also used to specify automount points and maps. The general format of a command line is amd [options] [{ directory map-name [-map-options] } ...] For each directory and map-name given or specified in the `amd.conf' file, Amd establishes an automount point. The "map-options" may be any sequence of options or selectors--Note: Location Format. The "map-options" apply only to Amd's mount point. `type:=toplvl;cache:=mapdefault;fs:=${map}' is the default value for the map options. Default options for a map are read from a special entry in the map whose key is the string `/defaults'. When default options are given they are prepended to any options specified in the mount-map locations as explained in Note: Map Defaults. The "options" are any combination of those listed below. Once the command line has been parsed, the automount points are mounted. The mount points are created if they do not already exist, in which case they will be removed when Amd exits. Finally, Amd disassociates itself from its controlling terminal and forks into the background. Note: Even if Amd has been built with `-DDEBUG' (via `configure --enable-debug'), it will still background itself and disassociate itself from the controlling terminal. To use a debugger it is necessary to specify `-D nodaemon' on the command line. However, even with all of this, mounts and unmounts are performed in the background, and Amd will always fork before doing them. Therefore, debugging what happens closely during un/mounts is more challenging. _All_ of Amd's command options (save `-F' and `-T') can be specified in the `amd.conf' file. Note: Amd Configuration File. If Amd is invoked without any command line options, it will default to using the configuration file `/etc/amd.conf', if one exists.
automatically generated by info2www version 1.2.2.9 |