summaryrefslogtreecommitdiffstats
path: root/net-analyzer/netams/files/netams33.init
blob: a4b56adcbd2935d68f384d8244f121fad8f4d396 (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
#!/sbin/runscript
# $Id: netams-gentoo.sh,v 1.1 2005/06/07 20:20:37 anton Exp $
# this is Linux Gentoo version

start() {
    ebegin "Starting NeTAMS"
    if [ -f /etc/netams.cfg ]; then
        start-stop-daemon --start --quiet --background \
	    --pid /var/run/netams.pid \
	    --exec /usr/sbin/netams -- -f /etc/netams.cfg -l
     fi
    eend $? "Failed to start NeTAMS"
}

stop() {
    ebegin "Stopping netams"
    start-stop-daemon --stop --quiet --pid /var/run/netams.pid --exec /usr/sbin/netams
    eend $? "Failed to stop NeTAMS"
}

restart() {
    svc_stop
    sleep 3
    svc_start
}