sys-auth/CASA: update init script 2nd round

This commit is contained in:
geos_one
2010-02-17 14:44:44 +00:00
parent f189da99bc
commit f19673184c
3 changed files with 11 additions and 6 deletions

View File

@@ -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 $?
}