aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/smokeping/files/smokeping.in
blob: a6504a5ddd8d510f63aceb34a6226fdeb3d2694b (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
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/sh
# $FreeBSD$

# PROVIDE: smokeping
# REQUIRE: sshd
# KEYWORD: shutdown

# Define these smokeping_* variables in one of these files:
#       /etc/rc.conf
#       /etc/rc.conf.local
#       /etc/rc.conf.d/smokeping
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
# smokeping_flags="<set as needed>"

smokeping_enable=${smokeping_enable-"NO"}
smokeping_pidfile=${smokeping_pidfile-"%%PREFIX%%/var/smokeping/smokeping.pid"}
smokeping_logfile=${smokeping_logfile-"/var/log/smokeping.log"}
smokeping_user=${smokeping_user-"%%USER%%"}
smokeping_group=${smokeping_group-"%%GROUP%%"}

. %%RC_SUBR%%

name="smokeping"
rcvar=`set_rcvar`
load_rc_config $name
command="/usr/local/bin/smokeping"
command_args="--logfile=${smokeping_logfile}"
pidfile="${smokeping_pidfile}"

extra_commands="reload"
reload_cmd="smokeping_reloadcmd"

smokeping_reloadcmd()
{
	$command --reload
}

run_rc_command "$1"