home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.ee.lbl.gov
/
2014.05.ftp.ee.lbl.gov.tar
/
ftp.ee.lbl.gov
/
acld-1.11.tar.gz
/
acld-1.11.tar
/
acld-1.11
/
acld-init.d.sh.in
< prev
next >
Wrap
Text File
|
2011-09-23
|
813b
|
53 lines
#!/bin/sh
# @(#) $Id: acld-init.d.sh.in 762 2011-09-23 17:58:04Z leres $ (LBL)
### BEGIN INIT INFO
# Provides: acld
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 1
# Short-Description: manage ACLs on a router
### END INIT INFO
prefix="@prefix@"
exec_prefix="@exec_prefix@"
sbindir="@sbindir@"
ACLD="${sbindir}/acld"
PIDFILE="/var/run/acld/acld.pid"
LOGFILE="/var/log/acld/acld.log"
OPTIONS="-d -o ${LOGFILE}"
acld_start() {
start-stop-daemon --start --quiet --pidfile ${PIDFILE} \
--exec ${ACLD} -- ${OPTIONS}
}
acld_stop() {
start-stop-daemon --stop --quiet --pidfile ${PIDFILE}
}
case "$1" in
start)
acld_start
;;
stop)
acld_stop
;;
restart)
acld_stop
acld_start
;;
*)
echo "Usage: /etc/init.d/acld {start|stop|restart}"
exit 2
;;
esac
exit 0