Re: avoid starting a program during reboot

2013-09-09 Thread Tom H
On Mon, Sep 9, 2013 at 6:16 AM, lina wrote: > > I do not want to start some program, such as apache server, during reboot, > > shall I simply remove it from /etc/init.d/ ? > > haha ... is it a bit brutal? or lack elegance? "update-rc.d disable" will do this properly. -- To UNSUBSCRIBE, email

Re: avoid starting a program during reboot

2013-09-09 Thread Lars Noodén
On 09.09.2013 17:22, Brian wrote: > On Mon 09 Sep 2013 at 13:47:25 +0300, 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

Re: avoid starting a program during reboot

2013-09-09 Thread Brian
On Mon 09 Sep 2013 at 13:47:25 +0300, 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 a

Re: avoid starting a program during reboot

2013-09-09 Thread Lars Noodén
On 9/9/13 1:51 PM, lina wrote: > I notice apach2 still in /etc/init.d/, it is good, so I can restart it > when I need it (only occasionally). Yes. You can use that script to start (and then stop) the service on demand. /etc/init.d/apache2 start That directory is where the template scrip

Re: avoid starting a program during reboot

2013-09-09 Thread lina
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 >

Re: avoid starting a program during reboot

2013-09-09 Thread Lars Noodén
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

Re: avoid starting a program during reboot

2013-09-09 Thread lina
> > update-rc.d -f apache2 remove > > That should get it from all the rc?.d directories. Gorgeous, thanks both of you. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.d

Re: avoid starting a program during reboot

2013-09-09 Thread Lars Noodén
On 9/9/13 1:16 PM, lina wrote: > Hi, > > I do not want to start some program, such as apache server, during reboot, > > shall I simply remove it from /etc/init.d/ ? > > haha ... is it a bit brutal? or lack elegance? > > THanks with best regards, Your default runlevel is 2, so you would look in

Re: avoid starting a program during reboot

2013-09-09 Thread Juan Sierra Pons
Hi you can use chkconfig ( apt-get install chkconfig) command to disable services on boot root@do1:~/.SpiderOak# chkconfig --list apache2 apache2 0:off 1:off 2:on 3:on 4:on 5:on 6:off root@do1:~/.SpiderOak# chkconfig apache2 off root@do1:~/.SpiderOak# chkconfig --lis

avoid starting a program during reboot

2013-09-09 Thread lina
Hi, I do not want to start some program, such as apache server, during reboot, shall I simply remove it from /etc/init.d/ ? haha ... is it a bit brutal? or lack elegance? THanks with best regards, -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscrib