The handbook has so much good information. After a few minutes of reading, I understood enough to create a bare bones do-nothing daemon. Enough to install it and either start / stop it using the service command and a ridiculously short rc.d script.
First, the rc.d script that goes under /usr/local/etc/rc.d/ and is named 'placebo'.
First, the rc.d script that goes under /usr/local/etc/rc.d/ and is named 'placebo'.
Code:
#!/bin/sh
# PROVIDE: placebo
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD:
. /etc/rc.subr
name=placebo
rcvar=placebo_enable
command="/usr/local/bin/${name}"
pidfile="/var/run/${name}.pid"
load_rc_config $name
run_rc_command "$1"