rc: Fix startup scripts when command_interpreter is used
authorMichael Neumann <mneumann@ntecs.de>
Mon, 20 Sep 2010 13:27:03 +0000 (15:27 +0200)
committerMichael Neumann <mneumann@ntecs.de>
Mon, 20 Sep 2010 13:27:03 +0000 (15:27 +0200)
commitdc1d15486ee9b3421473f9b4f1c56eb5fde693f0
tree8a04e6db4ff124c56330e631c2b33208a8d3e52b
parentf50462657c50949b89f92df44a53ba7386ef643e
rc: Fix startup scripts when command_interpreter is used

Correct the behaviour when using command_interpreter in
rc.d scripts where the proctitle of ps does not include
the full interpreter path, but for example just "perl: ..."
instead of "/usr/pkg/bin/perl -flags ...".

With this patch, the /etc/rc.d/postgrey stop/status script
of pkgsrc package mail/postgrey works. Other packages seem
to not use command_interpreter at all.
etc/rc.subr