[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: No startup of daemon at installation



Markus Meyer schreef:
Sjoerd Hardeman schrieb:
So you don't want the daemon to be started straight away but it should
start when you reboot? Why? What do you want to accomplish?

I don't want the service to start at installation time only. It seems
that as soon as there is a Init-script in the package, dpkg seems to
start the service.  So I'm looking for a way, to tell dpkg/apt/aptitude
not to start the daemon during installation.

As to why? The installation goes together with a firmware upgrade of a
RAID-controller and this needs a reboot afterwards. And the daemon must
not start only to be shut down again after a few seconds when I reboot
the server.
That would be very package-dependent. Many packages have a init script that looks into /etc/default/servicename to see if the service should be started. In that case, setting the file to "START_SERVICE=no", as mentioned in your first mail, will avoid it from starting the service. After that, you can change the value to yes, and reboot. Another option would be to download the deb, unpack it and manually edit the configuration scripts not to execute the init routine. I don't think there's an easier way. It's not apt that calls the init, it's the package its configuration scripts.
Maybe somebody else has a clever idea.

Sjoerd

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: