Re: How to launch services that do not fork to background using the rc infrastructure?

2013-01-23 Thread Javier Martín Rueda
On 22/01/13 16:36, Greg Larkin wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 1/22/13 10:29 AM, Grzegorz Blach wrote: On 01/22/2013 04:19 PM, Javier Mart■n Rueda wrote: The typical and simple rc.d script to launch a service has, esentially, the following: . /etc/rc.subr name=SERVICE

How to launch services that do not fork to background using the rc infrastructure?

2013-01-22 Thread Javier Martín Rueda
The typical and simple rc.d script to launch a service has, esentially, the following: . /etc/rc.subr name=SERVICE rcvar=SERVICE_enable command="/usr/local/sbin/PROGRAM" pidfile=/var/run/${name}.pid SERVICE_enable=${SERVICE_enable:-"NO"} load_rc_config ${name} run_rc_command "$1" One of the