Web page hosting, cheap domain name registration & web site promotion services
  

 Home

Go forward to Stopping Amd.
Go backward to Run-time Administration.
Go up to Run-time Administration.
Starting Amd
============

   Amd is best started from `/etc/rc.local':

     if [ -f /etc/amd.start ]; then
             sh /etc/amd.start; (echo -n ' amd')      >/dev/console
     fi

The shell script, `amd.start', contains:

     #!/bin/sh -
     PATH=/etc:/bin:/usr/bin:/usr/ucb:$PATH export PATH
     
     #
     # Either name of logfile or "syslog"
     #
     LOGFILE=syslog
     #LOGFILE=/var/log/amd
     
     #
     # Figure out whether domain name is in host name
     # If the hostname is just the machine name then
     # pass in the name of the local domain so that the
     # hostnames in the map are domain stripped correctly.
     #
     case `hostname` in
     *.*) dmn= ;;
     *) dmn='-d doc.ic.ac.uk'
     esac
     
     #
     # Zap earlier log file
     #
     case "$LOGFILE" in
     */*)
             mv "$LOGFILE" "$LOGFILE"-
             > "$LOGFILE"
             ;;
     syslog)
             : nothing
             ;;
     esac
     
     cd /usr/sbin
     #
     # -r            restart
     # -d dmn        local domain
     # -w wait       wait between unmount attempts
     # -l log        logfile or "syslog"
     #
     eval ./amd -r $dmn -w 240 -l "$LOGFILE" \
             /homes amd.homes -cache:=inc \
             /home amd.home -cache:=inc \
             /vol amd.vol -cache:=inc \
             /n amd.net -cache:=inc

   If the list of automount points and maps is contained in a file or
NIS map it is easily incorporated onto the command line:

     ...
     eval ./amd -r $dmn -w 240 -l "$LOGFILE" `ypcat -k auto.master`

 

 

 

 

Buy domain name registration | Register cheap domain name | Domain registration services 

Disclaimers: This document is provided as free service for the benefits of Active-Venture.com's website hosting customers only.

 

 
< There are two major products that come out of Berkeley: LSD and UNIX. We don't believe this to be a coincidence.   >
 

Monday 1 December 2008 22:57:10 1228172230