Using update-rc.d XX remove will just remove the symlinks on /etc/rc*.d so it shouldnt be a problematic in any way.
At worse, you could still recreate the links from the host system.
Ben Green <ben@bristolwireless.net> wrote:
>Quoting Jean Weisbuch <jean@phpnet.org>:
>
>> It works but it might stop in the middle of the apt-get upgrade on
>> the sysv-rc package if you removed by hand some init scripts on the
>> guest, you will need to do an apt-get -f install then an apt-get
>> dist-upgrade again afterwise and it will be OK.
>>
>> Don't forget to re-remove the un-needed init scripts from /etc/rc.*/.
>> Here is the code i use for that matter (i have mksh, Perl and GNU
>> Parallel on all my guests installs but it should work the same with
>> ksh93 or bash and xargs instead of parallel) :
>> vserver ${VSERVERNAME} exec /bin/mksh -c "ls -U
>>
>/etc/init.d/*@(check|udev|hostname|mtab|mount|fs|reboot|random|hwclock)*
>
>> |perl -pe 's#^.*init.d/(.*)\$#\1#' |parallel 'update-rc.d -f {}
>> remove'"
>
>I wouldn't suggest removing any init scripts at all. Disable the
>scripts selectively with insserv -r <scriptname>.
>
>Cheers,
>Ben
Received on Mon Oct 7 18:56:34 2013