blob: f44b2d3870598f865d1a7445e9bde1a4e76f6f0b (
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: DAEMON
# BEFORE: LOGIN
# 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_enable=${smokeping_enable-"NO"}
smokeping_flags=${smokeping_flags-""}
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`
command="/usr/local/bin/smokeping"
command_args="--logfile=${smokeping_logfile}"
pidfile="${smokeping_pidfile}"
extra_commands="reload"
reload_cmd="smokeping_reloadcmd"
smokeping_reloadcmd()
{
$command --reload
}
load_rc_config $name
run_rc_command "$1"
|