#!/bin/sh - PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/etc:$PATH export PATH # # Either name of logfile or "syslog" # #LOGFILE=syslog LOGFILE=/var/log/amd # # Debugging # # DEBUG="-D all,nomtab -x all" DEBUG=" -x fatal,error" # # 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 sai.msu.su' esac # # Zap earlier log file # #case "$LOGFILE" in #*/*) # mv "$LOGFILE" "$LOGFILE"- # > "$LOGFILE" # ;; #syslog) # : nothing # ;; #esac cd /etc # # -r restart # -d dmn local domain # -w wait wait between unmount attempts # eval /usr/sbin/amd -r $dmn -a /tmp/amnt -w 240 ${DEBUG} -l "$LOGFILE" \ /net amd.net -cache:=inc