Subject: rc.subr check_process()
To: None <current-users@netbsd.org>
From: Brook Milligan <brook@biology.nmsu.edu>
List: current-users
Date: 02/13/2002 15:19:06
I am trying to write some scripts for /etc/rc.d.  They need to start
other scripts.  Consequently, when they run ps -ax -o 'pid,command'
reports something like

270 /bin/sh /usr/pkg/bin/foo

The /etc/rc.subr check_process() does not match this, because of the
leading "/bin/sh".  Consequently, the stop/restart/status operations
fail.  One fix is to add cases with /bin/sh to the beginning, but this
may not scale well if scripts in other languages need this facility.

In any case, it would be really useful if rc.subr could find scripts
run by this mechanism.

Cheers,
Brook