summaryrefslogtreecommitdiff
path: root/net-mgmt/netams/files/netams.sh
blob: 1df303d575ff7faac46dfe315c74289ebbef9649 (plain) (blame)
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
#!/bin/sh

case "$1" in

start)
	sleep 3;
        /bin/mkdir -p /var/run/netams
        if [ -x /usr/local/libexec/netams ]; then
		if [ -f /usr/local/etc/netams.conf ]; then
                	/usr/local/libexec/netams -lf /usr/local/etc/netams.conf >/dev/null && echo -n ' NetAMS'
        	fi
	fi
        ;;

stop)
        killall netams
	rmdir /var/run/netams
        ;;
*)
        echo "$0 start | stop"
        ;;

esac