From f67269202ef1bdb0e7b91aaa1d2799a9bc35ac73 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sat, 15 Aug 2020 17:40:08 -0400 Subject: Add FreeBSD rc script I'm expecting to also have an OpenBSD rc script. --- FreeBSD/catsitd.in | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 FreeBSD/catsitd.in (limited to 'FreeBSD') 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" -- cgit 1.4.1