using rc scripts

Atom Powers atom.powers at gmail.com
Fri May 12 10:34:08 PDT 2006


I wrote an rc script for cfengine, but it's not recording the pid. Am
I doing something obviously wrong, or does rc rely on the app to
provide the pid?
--
#!/bin/sh
#
# PROVIDE: cfexecd
# REQUIRE: LOGIN
# BEFORE:  securelevel
# KEYWORD: FreeBSD shutdown

. "/etc/rc.subr"

name="cfexecd"
rcvar=`set_rcvar`

command="/usr/local/sbin/cfexecd"
command_args=""
pidfile="/var/run/$name.pid"
#required_files="/usr/local/etc/$name.conf"

# read configuration and set defaults
load_rc_config "$name"
: ${cfexecd_enable="NO"}
: ${cfexecd_flags=""}

run_rc_command "$1"


-- 
--
Perfection is just a word I use occasionally with mustard.
--Atom Powers--


More information about the freebsd-questions mailing list