2024-08-06 19:02:07 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# PROVIDE: munin_f2b_remote
|
|
|
|
# REQUIRE: LOGIN
|
|
|
|
|
|
|
|
. /etc/rc.subr
|
|
|
|
|
|
|
|
name=munin_f2b_remote
|
|
|
|
rcvar=${name}_enable
|
|
|
|
|
|
|
|
: ${munin_f2b_remote_enable:=no}
|
|
|
|
: ${munin_f2b_remote_user:=munin-f2b-remote}
|
|
|
|
: ${munin_f2b_remote_group:=munin-f2b-remote}
|
|
|
|
: ${munin_f2b_remote_chdir:=/home/munin-f2b-remote}
|
2024-08-06 19:21:49 +02:00
|
|
|
: ${pidfile:=/var/run/munin-f2b-remote/${name}-supervisor.pid}
|
|
|
|
: ${logfile:=/var/log-munin-f2b-remote/${name}.log}
|
|
|
|
: ${configfile:=/home/munin-f2b-remote/munin-f2b-remote.ini}
|
2024-08-06 19:02:07 +02:00
|
|
|
|
|
|
|
command="/usr/sbin/daemon"
|
|
|
|
command_args="-o ${logfile} -H -P ${pidfile} -r /usr/local/src/munin-f2b-remote/f2b-responder.py"
|
|
|
|
|
|
|
|
load_rc_config $name
|
|
|
|
run_rc_command "$1"
|