munin-f2b-remote/scripts/freebsd-daemon.sh

25 lines
682 B
Bash
Executable file

#!/bin/sh
# PROVIDE: munin_f2b_remote
# REQUIRE: LOGIN
. /etc/rc.subr
PATH=${PATH}:/usr/local/sbin:/usr/local/bin
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}
: ${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}
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"