]> git.pld-linux.org Git - packages/am-utils.git/blame - am-utils.init
- new {un}registering procedure for info pages with using
[packages/am-utils.git] / am-utils.init
CommitLineData
e32c74ca
JR
1#!/bin/sh
2#
3# Version: 1.2
4#
5# chkconfig: 345 72 28
6# description: Runs the automount daemon that mounts devices and NFS hosts \
7# on demand.
8# processname: amd
9# config: /etc/amd.conf
10#
11
12# Source function library.
13. /etc/rc.d/init.d/functions
14
15. /etc/sysconfig/amd
16
17# See how we were called.
18case "$1" in
19 start)
20 echo -n "Starting amd: "
21 touch /var/lock/subsys/amd
22 daemon /usr/sbin/amd -a $ADIR -l syslog $AMDOPTS -c 1000 $MOUNTPTS
23 echo
24
25 ;;
26 stop)
27 echo -n "Shutting down amd: "
28 killproc amd
29 rm -f /var/lock/subsys/amd
30 echo
31 ;;
32 status)
33 status amd
34 ;;
35 restart)
36 $0 stop
37 $0 start
38 ;;
39 reload)
40 killall -HUP amd
41 ;;
42 *)
43 echo "Usage: amd {start|stop|status|restart|reload}"
44 exit 1
45esac
46
47exit 0
48
This page took 0.032446 seconds and 4 git commands to generate.