sys-auth/CASA: update init script 2nd round
This commit is contained in:
@@ -1,18 +1,20 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2007 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
depend() {
|
||||
|
||||
need net
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting miCASA daemon"
|
||||
@SBIN_INSTALL_DIR@/micasad
|
||||
eval start-stop-daemon --start --quiet --exec @SBIN_INSTALL_DIR@/micasad --pidfile /var/run/micasad.pid
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
pid=`cat /var/run/micasad.pid`
|
||||
ebegin "Stopping miCASA daemon"
|
||||
kill -TERM $pid
|
||||
start-stop-daemon --stop --quiet --pidfile /var/run/micasad.pid
|
||||
eend $?
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user