]> git.pld-linux.org Git - packages/am-utils.git/blame - am-utils.init
- adapterized and made spec %%debug ready or using %%rpm*flags macros
[packages/am-utils.git] / am-utils.init
CommitLineData
e32c74ca
JR
1#!/bin/sh
2#
1354d787
JR
3# chkconfig: 345 72 28
4# description: Runs the automount daemon that mounts devices and NFS hosts \
5# on demand.
6# processname: amd
7# config: /etc/amd.conf
e32c74ca
JR
8
9# Source function library.
10. /etc/rc.d/init.d/functions
11
1354d787 12# Demon specified configuration.
e32c74ca
JR
13. /etc/sysconfig/amd
14
15# See how we were called.
16case "$1" in
17 start)
1354d787 18 msg_starting amd
e32c74ca 19 daemon /usr/sbin/amd -a $ADIR -l syslog $AMDOPTS -c 1000 $MOUNTPTS
1354d787 20 touch /var/lock/subsys/amd
e32c74ca
JR
21 ;;
22 stop)
1354d787 23 msg_stopping amd
e32c74ca
JR
24 killproc amd
25 rm -f /var/lock/subsys/amd
e32c74ca
JR
26 ;;
27 status)
28 status amd
29 ;;
30 restart)
31 $0 stop
32 $0 start
33 ;;
34 reload)
35 killall -HUP amd
36 ;;
37 *)
1354d787 38 msg_Usage "$0 {start|stop|status|restart|reload}"
e32c74ca
JR
39 exit 1
40esac
41
42exit 0
43
This page took 0.050678 seconds and 4 git commands to generate.