You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-analyzer/symon/files/symon-init.d

32 lines
673 B

#!/sbin/runscript
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the 2-clause BSD license
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/symon/files/symon-init.d,v 1.3 2012/09/13 07:07:53 pinkbyte Exp $
opts="${opts} reload"
depend() {
after bootmisc
need localmount net
use logger
}
reload() {
ebegin "Reloading symon"
start-stop-daemon --stop --pidfile /var/run/symon.pid \
--exec /usr/sbin/symon --oknodo --signal HUP
eend $?
}
start() {
ebegin "Starting symon"
start-stop-daemon --start --exec /usr/sbin/symon -- -u
eend $?
}
stop() {
ebegin "Stopping symon"
start-stop-daemon --stop --pidfile /var/run/symon.pid
eend $?
}