Re: Disable server so it does not start on reboot (even after upgrade)?

2015-01-14 Thread Bob Proulx
Tony Baldwin wrote:
> Andrei POPESCU wrote:
> > Xavi wrote:
> > > First I do:
> > > 
> > > sudo update-rc.d -f apache2 remove
> > > 
> > > and then, to assert the rc.d links are not recreated, 
> > > I recreate them stopped in all runlevels:
> > > 
> > > sudo update-rc.d apache2 stop 80 0 1 2 3 4 5 6 .

Was that associated with some previous thread?

> > Or one could just use 'disable'.

Or it could be removed.  Why have it installed if it isn't going to be
running?

  apt-get remove apache2

Personally I "purge" instead of remove but I know I have etckeeper
keeping /etc backed up along with a real off system backup too.  So I
can purge things without thinking knowing if I didn't want that I
could recover the /etc conffiles from backup.

> Couldn't you just turn apache2 off in rcconf?

If one mentions rcconf then one might as well mention chkconfig too.
Basically the same thing but perhaps more familiar to people coming
from other software distributions.

> Or did I miss something in this thread?

This thread has little context.  :-(

Bob


signature.asc
Description: Digital signature


Re: Disable server so it does not start on reboot (even after upgrade)?

2015-01-14 Thread Tony Baldwin
On Tue, Jan 13, 2015 at 11:49:38PM +0200, Andrei POPESCU wrote:
> On Vi, 09 ian 15, 15:02:34, Xavi wrote:
> > First I do:
> > 
> > sudo update-rc.d -f apache2 remove
> > 
> > and then, to assert the rc.d links are not recreated, 
> > I recreate them stopped in all runlevels:
> > 
> > sudo update-rc.d apache2 stop 80 0 1 2 3 4 5 6 .
> 
> Or one could just use 'disable'.

Couldn't you just turn apache2 off in rcconf?
Or did I miss something in this thread?

./tony
--
http://tonybaldwin.me


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20150114134739.ga27...@myownsite.me



Re: Disable server so it does not start on reboot (even after upgrade)?

2015-01-13 Thread Andrei POPESCU
On Vi, 09 ian 15, 15:02:34, Xavi wrote:
> First I do:
> 
> sudo update-rc.d -f apache2 remove
> 
> and then, to assert the rc.d links are not recreated, 
> I recreate them stopped in all runlevels:
> 
> sudo update-rc.d apache2 stop 80 0 1 2 3 4 5 6 .

Or one could just use 'disable'.

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
http://nuvreauspam.ro/gpg-transition.txt


signature.asc
Description: Digital signature


Re: Disable server so it does not start on reboot (even after upgrade)?

2015-01-10 Thread Xavi
First I do:

sudo update-rc.d -f apache2 remove

and then, to assert the rc.d links are not recreated, 
I recreate them stopped in all runlevels:

sudo update-rc.d apache2 stop 80 0 1 2 3 4 5 6 .


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/loom.20150109t155951-...@post.gmane.org



Re: Disable server so it does not start on reboot (even after upgrade)?

2010-05-14 Thread Andrei Popescu
On Thu,13.May.10, 11:13:43, Allan Wind wrote:
> I use insserv to boot my laptop and used `update-rc.d apache2 
> remove` to indicate that I do not want apache2 to start on 
> reboot.  Indeed this works fine for while.  Either an apache2 
> (apache2.2-common upgrade) or some other package install/upgrade 
> then seems to revert my choice and apache is once again started 
> in reboot.
> 
> Is there a better way to disable servers from starting?

As far as I know, the proper way to disable a service is to change the 
Sxy link in Kxy for the respective runlevel (this can also be done with 
any of the available runlevel editors, like sysv-rc-conf).

Removing all Sxy symlinks will result in them being recreated on the 
next upgrade (as you have experienced).

You can also make changes to the init.d script, but I'm not sure which 
ones will be detected by dpkg. Textual changes will, but don't know 
about removing the execute bit or the like.

Regards,
Andrei
-- 
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic


signature.asc
Description: Digital signature


Re: Disable server so it does not start on reboot (even after upgrade)?

2010-05-13 Thread Sven Joachim
On 2010-05-14 00:59 +0200, Stan Hoeppner wrote:

> Allan Wind put forth on 5/13/2010 10:13 AM:
>> I use insserv to boot my laptop and used `update-rc.d apache2 
>> remove` to indicate that I do not want apache2 to start on 
>> reboot.  Indeed this works fine for while.  Either an apache2 
>> (apache2.2-common upgrade) or some other package install/upgrade 
>> then seems to revert my choice and apache is once again started 
>> in reboot.
>> 
>> Is there a better way to disable servers from starting?
>
> I just remove the apache link in /etc/rc*.d

This is equivalent to "update-rc.d apache2 remove" and will not
persist.  The workaround is to keep at least one stop link, then
update-rc.d will not recreate the symlinks on package upgrades.

In squeeze it is possible to run "update-rc.d disable" and "update-rc.d
enable" to disable or enable a service.

Sven


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87iq6r9gts@turtle.gmx.de



Re: Disable server so it does not start on reboot (even after upgrade)?

2010-05-13 Thread Anand Sivaram
On Fri, May 14, 2010 at 04:29, Stan Hoeppner  wrote:

> Allan Wind put forth on 5/13/2010 10:13 AM:
> > I use insserv to boot my laptop and used `update-rc.d apache2
> > remove` to indicate that I do not want apache2 to start on
> > reboot.  Indeed this works fine for while.  Either an apache2
> > (apache2.2-common upgrade) or some other package install/upgrade
> > then seems to revert my choice and apache is once again started
> > in reboot.
> >
> > Is there a better way to disable servers from starting?
>
> I just remove the apache link in /etc/rc*.d
>
> --
> Stan
>
>
> --
> To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmas...@lists.debian.org
> Archive: http://lists.debian.org/4bec846a.7020...@hardwarefreak.com
>
>
You could also update /etc/init.d/apache2, change
the run levels to Defaut-stop


Re: Disable server so it does not start on reboot (even after upgrade)?

2010-05-13 Thread Stan Hoeppner
Allan Wind put forth on 5/13/2010 10:13 AM:
> I use insserv to boot my laptop and used `update-rc.d apache2 
> remove` to indicate that I do not want apache2 to start on 
> reboot.  Indeed this works fine for while.  Either an apache2 
> (apache2.2-common upgrade) or some other package install/upgrade 
> then seems to revert my choice and apache is once again started 
> in reboot.
> 
> Is there a better way to disable servers from starting?

I just remove the apache link in /etc/rc*.d

-- 
Stan


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4bec846a.7020...@hardwarefreak.com



Disable server so it does not start on reboot (even after upgrade)?

2010-05-13 Thread Allan Wind
I use insserv to boot my laptop and used `update-rc.d apache2 
remove` to indicate that I do not want apache2 to start on 
reboot.  Indeed this works fine for while.  Either an apache2 
(apache2.2-common upgrade) or some other package install/upgrade 
then seems to revert my choice and apache is once again started 
in reboot.

Is there a better way to disable servers from starting?


/Allan
-- 
Allan Wind
Life Integrity, LLC



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100513151343.ga3...@lifeintegrity.com