On Wed, 09 Jun 2010, Timo Juhani Lindfors wrote:
> Henrique de Moraes Holschuh <[email protected]> writes:
> > Remove the rcS links.
>
> (I assume you mean /etc/rc?.d/S* here.) I want that on my system the
I thought you were talking about runlevel S, so it would be /etc/rcS.d/S*.
But if it is in runlevel #, then it is /etc/rc#.d/S*.
Of course, mess with the stuff in runlevel S at your own risk ;-)
> requires me to re-investigate the situation after every package
> installation to spot new services that have links to remove.
Yes. You need both that, and a policy-rc.d that won't let the package start
the service on its postinst maintainer script.
> One solution that comes to my mind is to have
> /etc/apt/apt.conf.d/04check-for-new-services with
>
> DPkg {
> Post-Invoke {"/usr/local/bin/check-for-new-services";};
> }
>
> where /usr/local/bin/check-for-new-services could do something like
[...]
Sounds like a good idea. You could even package it along with a policy-rc.d
that does the same thing, so that you cover both the initscripts and the
package maintaner script attempts to start the service.
--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]