Re: avoid starting a program during reboot
On Monday 09,September,2013 06:47 PM, Lars Noodén wrote:
> On 9/9/13 1:39 PM, lina wrote:
>>>
>>> update-rc.d -f apache2 remove
>>>
>>> That should get it from all the rc?.d directories.
>>
>> Gorgeous, thanks both of you.
>
> An after thought: If you want it to stick permanently even after
> upgrades you will also have to re-populate the directories with stop
> scripts:
>
> update-rc.d apache2 stop 17 0 1 2 3 4 5 6 .
>
I notice apach2 still in /etc/init.d/, it is good, so I can restart it
when I need it (only occasionally).
BTW, how do I know, my runlevel is 2?
$ nice
0
and what does 17 stand for?
# ls rc
rc0.d/ rc1.d/ rc2.d/ rc3.d/ rc4.d/ rc5.d/ rc6.d/
rc.local rcS.d/
THanks again with best regards,
> Regards,
> /Lars
>
>
Reply to: