catsit/FreeBSD/catsitd.in
C. McEnroe f67269202e Add FreeBSD rc script
I'm expecting to also have an OpenBSD rc script.
2020-08-15 17:40:17 -04:00

22 lines
311 B
Bash

#!/bin/sh
# PROVIDE: catsitd
# REQUIRE: LOGIN
# KEYWORD: shutdown
. /etc/rc.subr
name="catsitd"
rcvar="${name}_enable"
extra_commands="reload"
load_rc_config $name
: ${catsitd_enable:="NO"}
command="%%PREFIX%%/sbin/${name}"
pidfile="/var/run/${name}.pid"
command_args="-p ${pidfile}"
run_rc_command "$1"