blob: b7c10e4fa489a641802e02e17ff311118f8c8708 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/sbin/runscript
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/symon/files/symux-init.d,v 1.2 2008/11/17 00:00:46 tcunha Exp $
opts="${opts} reload"
depend() {
after bootmisc
need localmount net
use logger
}
reload() {
ebegin "Reloading symux"
start-stop-daemon --stop --pidfile /var/run/symux.pid \
--exec /usr/sbin/symux --oknodo --signal HUP
eend $?
}
start() {
ebegin "Starting symux"
start-stop-daemon --start --exec /usr/sbin/symux
eend $?
}
stop() {
ebegin "Stopping symux"
start-stop-daemon --stop --pidfile /var/run/symux.pid
eend $?
}
|