blob: 86fcf7a1b787338874c253162a3e4b6b0c63c912 (
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
27
28
29
|
#!/bin/sh
#
# init(1) startup script for hsflowd daemon
#
# description: Host sFlow Daemon
# processname: hsflowd
# pidfile: /var/run/hsflowd.pid
#
. /etc/rc.subr
name=hsflowd
rcvar=`set_rcvar`
load_rc_config $name
hsflowd_enable=${hsflowd_enable:-"NO"}
stop_postcmd="hsflowd_postcmd"
command="%%PREFIX%%/sbin/${name}"
pidfile="/var/run/${name}.pid"
hsflowd_postcmd() {
rm -f $pidfile
}
run_rc_command "$1"
|