wobblyhead hg > freebsd > botblockd
view conf/rc.d/botblockd @ 1:30f396bc751c default tip
Added tag 0.4.0 for changeset 9f8d79c98fd2
| author | Arkadiusz Juszczyk <ark@wobblyhead.net> |
|---|---|
| date | 2026-10-26 11:29 +0100 |
| parents | 9f8d79c98fd2 |
| children |
line wrap: on
line source
#!/bin/sh # PROVIDE: botblockd # REQUIRE: LOGIN pf # KEYWORD: shutdown . /etc/rc.subr name="botblockd" rcvar=${name}_enable load_rc_config "$name" : ${botblockd_enable:=NO} : ${botblockd_pidfile:=/var/run/${name}.pid} : ${botblockd_configfile:=%%PREFIX%%/etc/${name}/conf} # botblockd detaches itself via daemon(3) and writes its own pidfile; # the "run" verb starts the daemon. pidfile="${botblockd_pidfile}" command="%%PREFIX%%/sbin/${name}" command_args="run -c ${botblockd_configfile} -p ${pidfile}" # reload sends SIGHUP via the pidfile; botblockd re-reads config/whitelist extra_commands="reload" run_rc_command "$1"
