summaryrefslogtreecommitdiffstats
path: root/net-analyzer/netams/files/netams.init
blob: c5aca065f9e079fe70b52a317a1136ac5752507b (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
32
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header:

depend() {
    need net mysql
}


daemondir=/usr/local/sbin
path_to_etc=/etc/


start() {
	ebegin "Starting netams"
        /bin/mkdir -p /var/run/netams
        if [ -x $daemondir/netams ]; then
                if [ -f $path_to_etc/netams.cfg ]; then
                        $daemondir/netams -lf $path_to_etc/netams.cfg >/dev/null 
			eend $?
		else
		    eend 1
                fi
	else
	    eend 1
        fi
}

stop() {
        killall ${KILL_OPTS} netams
}