[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#647075: please support RUN in /etc/default/apache2



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Harald,

On 30.10.2011 08:36, Harald Dunkel wrote:
> Would it be possible to support an option "RUN" or
> "START_DAEMON" in /etc/default/apache2, similar to
> other packages?

some people, even within Debian, hate the duplicated method to enable or
disable daemons by setting a variable in /etc/default/. The problem with
it is, it is completely redundant and home-brewed since every package
may (or may not) do so at its own by setting its own custom variable (or
not).

On the other hand there _is_ a generic interface to disable services at
boot time: Removing the symlinks from your default runlevel. See below.

> Apache2 is supposed to be started by other means on
> my systems. Creating /etc/insserv/overrides/apache2
> appears a little bit too complex just to make sure
> that it is not started at boot time.


You can just remove the symlink, for example by using insserv -d or
update-rc.d remove.

Doing

update-rc.d -f apache2 remove

or

insserv -r apache2

has the same effect.


Note, I am not authoritative for what will happen with your report.
Possibly such a variable could be added nonetheless. However, note there
is /etc/apache2/envvars too. The general idea is to be able to start
multiple instances at boot time. Hence we may further discuss whether
one wants to enable/disable the apache http daemon per-instance in
/etc/apache2/envvars or globally in /etc/default/apache2 only.

- -- 
with kind regards,
Arno Töll
IRC: daemonkeeper on Freenode/OFTC
GnuPG Key-ID: 0x9D80F36D
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJOrTpaAAoJEMcrUe6dgPNtsEUP/3zOjZNIKvsqbbgVnVHkAJBH
kAXuwC0AFobWKaDNiufa1cuUkAZkGX6Et2rBglB/X3Y6TwNn3rBQOBsDYD7Vstp6
H9bWZYi7NCeBSy16EwoiqrInI03a+w5K8mOarKPHftTI3MO56Qo3vLnaF2APgw23
5pEYIJojAY8H9dRu3K7l91pGQaGCArdi+90KkWYJq1Y1qnWG1IU40hetRNwKDHmZ
xO2OamgXl2k7Ztik9WEAWnm5gSBFXT7UJHGC7acrZXiB38FoMkxD73cOBVh4GxFE
eYl+KSVcm10IUaHLeYSzDLvS+8W1iPgauDIMrwsWOOJ1WiyXIq5hOgYf/TIavMj0
8aZvduK0iu7r9ASktKsLBjXdepnpHqApnPX66zKGuacf+1CvSr1jqhXBdua4RLAe
vZdmtjaOVo/mWzxO6uXKqnV5ZIRduPIYCmUvnfFoazL9iWIUu7lzzh5E663z39oZ
ZbVTKmg1qmAfDNSU39NoRdRDmWcJD4QlRB1rPXP8Q8Qy15CI/OSX3OOARhAsNDjM
WlYY52eQXfwd+xMXhA68d1EBs8UnAff/oSMBiL9rc2B3CWhCzP4kpjEmlgUd0dWA
gKc/oWVGaqI23+5zfbnwSJM5L9UmdkJJ6Hg0zts8jYWDSoSzFKWPZncdQ4JtT68G
keI7yvHNoeehNF4BbWee
=B5qt
-----END PGP SIGNATURE-----



Reply to: