diff options
author | June McEnroe <june@causal.agency> | 2020-08-15 17:40:08 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-08-15 17:40:17 -0400 |
commit | f67269202ef1bdb0e7b91aaa1d2799a9bc35ac73 (patch) | |
tree | 8267137124a3b64798b4c353f580c85872d03a0e /FreeBSD/catsitd.in | |
parent | Call setproctitle with number of services (diff) | |
download | catsit-f67269202ef1bdb0e7b91aaa1d2799a9bc35ac73.tar.gz catsit-f67269202ef1bdb0e7b91aaa1d2799a9bc35ac73.zip |
Add FreeBSD rc script
I'm expecting to also have an OpenBSD rc script.
Diffstat (limited to '')
-rw-r--r-- | FreeBSD/catsitd.in | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/FreeBSD/catsitd.in b/FreeBSD/catsitd.in new file mode 100644 index 0000000..7dfa8a8 --- /dev/null +++ b/FreeBSD/catsitd.in @@ -0,0 +1,21 @@ +#!/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" |