using rc scripts
- From: "Atom Powers" <atom.powers@xxxxxxxxx>
- Date: Fri, 12 May 2006 10:33:20 -0700
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--
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: using rc scripts
- From: Lowell Gilbert
- Re: using rc scripts
- Prev by Date: Re: Reducing the size of /
- Next by Date: Re: very slow boot (newbie)
- Previous by thread: Upgrading 6.0 to 6.1 with etcmerge
- Next by thread: Re: using rc scripts
- Index(es):
Relevant Pages
|