[Netkit.users] switching services on & off

Alessandro Dentella sandro at e-den.it
Fri Apr 23 16:15:34 CEST 2010


Hi Massimo,


On Fri, Apr 23, 2010 at 03:54:31PM +0200, Massimo Rimondini wrote:
> > What I think is missing is the ability to swicth services off *before*
> > thy're started. It's very easy to switch them off in the
> > hostname.startup script, but I'd like to be able to prevent them from
> > starting at all.
> > 
> > Before I patch netkit-phase1 in order to do that i'd like to know if
> > there
> > is already some way that I have not found out.
> 
> Well, I'm afraid there is not much you can do earlier than netkit-phase1.
> There are a couple of Netkit-related scripts inside /etc/rcS.d, but they are
> only used for very basic operation and you cannot exploit them to alter
> early-boot-time services.
> Also, netkit-phase1 itself is responsible for basic VM setup (configuring
> the name, mounting filesystem directories, setting other filesystem related
> options, etc.), therefore you may hardly achieve your goal by just fiddling
> with it.
> 
> Maybe the best way would be to manually move away (or postpone) scripts from
> /etc/rcS.d and disable other applicable services using the standard
> "update-rc.d" tool.
> 
> By the way, given that bare VMs start a very minimal set of services, which
> ones would you like to get rid of?


I should have explained that I'm using it on filesystem I prepared
myself. So there are quite a lot of services that are present (squid, samba,
vtun, openvpn, slapd, apache, dnsmasq, and many more...)

netkit-phase1 is early enought in fact. netkit-phase2 is too late.
What I'm thinking of is a counterpart of host.startup but with only minimal
commands as (for debian) "update-rc.d -f slapd remove".

Clearly I can just as well keep the filesystem with as few services as
really essential and start the services I need in .startup and probably it
would be ok almost all the times. I'll reconsider it this way.

I was under the impression that having the possibility to swicth on/off in
phase1 would retain the start order of services and that that would be more
natural, but i may be wrong in thinking this is important in real cases.

sandro

-- 
Sandro Dentella  *:-)
http://sqlkit.argolinux.org        SQLkit home page - PyGTK/python/sqlalchemy


More information about the Netkit.users mailing list