|
|
1.1 root 1: #!/bin/sh -
2: #
3: # Start amd
4: #
5: # $Id: amd.start.ex,v 5.2 90/06/23 22:21:29 jsp Rel $
6: #
7: # Copyright (c) 1989 Jan-Simon Pendry
8: # Copyright (c) 1989 Imperial College of Science, Technology & Medicine
9: # Copyright (c) 1989 The Regents of the University of California.
10: # All rights reserved.
11: #
12: # This code is derived from software contributed to Berkeley by
13: # Jan-Simon Pendry at Imperial College, London.
14: #
15: # Redistribution and use in source and binary forms are permitted provided
16: # that: (1) source distributions retain this entire copyright notice and
17: # comment, and (2) distributions including binaries display the following
18: # acknowledgement: ``This product includes software developed by the
19: # University of California, Berkeley and its contributors'' in the
20: # documentation or other materials provided with the distribution and in
21: # all advertising materials mentioning features or use of this software.
22: # Neither the name of the University nor the names of its contributors may
23: # be used to endorse or promote products derived from this software without
24: # specific prior written permission.
25: # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
26: # WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
27: # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
28: #
29: # @(#)amd.start.ex 5.1 (Berkeley) 6/29/90
30: #
31: PATH=/usr/local/etc:/bin:/usr/bin:/usr/ucb:$PATH export PATH
32:
33: #
34: # Either name of logfile or "syslog"
35: #
36: #LOGFILE=syslog
37: LOGFILE=/var/adm/am.log
38:
39: #
40: # Figure out whether domain name is in host name
41: # If the hostname is just the machine name then
42: # pass in the name of the local domain so that the
43: # hostnames in the map are domain stripped correctly.
44: #
45: case `hostname` in
46: *.*) dmn= ;;
47: *) dmn='-d doc.ic.ac.uk'
48: esac
49:
50: #
51: # Zap earlier log file
52: #
53: case "$LOGFILE" in
54: */*)
55: mv "$LOGFILE" "$LOGFILE"-
56: > "$LOGFILE"
57: ;;
58: syslog)
59: : nothing
60: ;;
61: esac
62:
63: cd /usr/local/etc
64: #
65: # -r restart
66: # -d dmn local domain
67: # -w wait wait between unmount attempts
68: # -l log logfile or "syslog"
69: #
70: eval nice --4 ./amd -p > /etc/amd.pid -r $dmn -w 240 -l "$LOGFILE" \
71: /homes amd.homes -cache=inc \
72: /home amd.home -cache=inc \
73: /vol amd.vol -cache=inc
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.