hi there,
i am making the transition to the new rc.d thingie
and of course am happy to see the system becoming a bit
more admin friendly.
is there an "official" way to start a service as someone else?
most of my daemons for example use the "service" login class.
for example, in the old rc.local:
if [ -x /usr/local/sbin/nginx ]; then
echo -n ' nginx'
su -c services root -c "/usr/bin/env -i /usr/local/sbin/nginx"
fi
also, as far as i understand it, all executable scripts in /etc/rc.d/
are executed at startup and stopped at shutdown.
why not reuse the /etc/rc.conf style "set these to "NO" to turn them off.
otherwise, they're used as flags" approach?
this way i could say in /etc/rc.local.conf:
nginx=NO
and /etc/rc.d/nginx would be skipped at startup
or is the preferred way simply removing the execute bit?
i could still decide running it manually later..
-f
--
live long and prosper. -- spock