Re: the new rc.d subsystem

Previous thread: GERENTI YANG TERBAIK BUAT ANDA by kerana impian on Tuesday, December 7, 2010 - 9:42 am. (1 message)

Next thread: NAT64 via pf/OpenBSD by Pete Vickers on Friday, December 10, 2010 - 7:33 am. (1 message)
From: frantisek holop
Date: Friday, December 10, 2010 - 8:25 am

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

From: Antoine Jacoutot
Date: Friday, December 10, 2010 - 8:38 am

On Fri, 10 Dec 2010 16:25:40 +0100, frantisek holop <minusf@obiit.org> 

 It's not how it works, it won't start anything unless you add it to the 

 The framework is still not documented and there are several uncommitted 
 bits.

-- 
 Antoine

From: frantisek holop
Date: Friday, December 10, 2010 - 10:26 am

thanks for pointing that out, now i see.
what confused me was that there was no default $rc_scripts

was there a reason not to be consistent with /etc/rc.conf services?

-f
-- 
yossarian lives...

From: Ingo Schwarze
Date: Friday, December 10, 2010 - 11:15 am

Hi Frantisek,


That might or might not happen at some point,
but it will not obsolete the rc_scripts variable,

Ordering.

S01iptables, S66cron, S80sshd?
No, thanks.

Yours,
  Ingo

From: Marc Espie
Date: Friday, December 10, 2010 - 12:07 pm

Yes, the principle of least surprise !

We're not debian, so some packages include several components. Ditto
for dependencies.
Let's say you install a bunch of things in a hurry.

Then you find out, when you reboot a machine, that you're suddenly blessed
with five new daemons that you did not *explicitly request*.

Good luck systematically checking /etc/rc.d for those surprises after
a new package install...

Previous thread: GERENTI YANG TERBAIK BUAT ANDA by kerana impian on Tuesday, December 7, 2010 - 9:42 am. (1 message)

Next thread: NAT64 via pf/OpenBSD by Pete Vickers on Friday, December 10, 2010 - 7:33 am. (1 message)