Date: Fri, 12 May 2006 10:33:20 -0700 From: "Atom Powers" <atom.powers@gmail.com> To: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: using rc scripts Message-ID: <df9ac37c0605121033p1181419eidded1ae72829827@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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=3D"cfexecd"
rcvar=3D`set_rcvar`
command=3D"/usr/local/sbin/cfexecd"
command_args=3D""
pidfile=3D"/var/run/$name.pid"
#required_files=3D"/usr/local/etc/$name.conf"
# read configuration and set defaults
load_rc_config "$name"
: ${cfexecd_enable=3D"NO"}
: ${cfexecd_flags=3D""}
run_rc_command "$1"
--=20
--
Perfection is just a word I use occasionally with mustard.
--Atom Powers--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?df9ac37c0605121033p1181419eidded1ae72829827>
