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

Bug#522163: apt-cacher: change AUTOSTART to ENABLED in /etc/default/apt-cacher



On 04/10/12 09:52, Mark Hindley wrote:
>>> It would be good if apt-cacher would use similar variable:
>>>
>>>    ENABLED=0
>>>
>>> instead of current:
>>>
>>>    AUTOSTART=0
>>>
>>> This would help grepping which services are 'enabled'.

I don't think packages should do this, except as a way to respect
sysadmin configuration done in previous versions. openarena-server used
to do this (and be off-by-default), but for wheezy I changed the
documented way to disable it:

(from its README.Debian)
> Disabling the init script
> -------------------------
>
> To disable the init script, use the facilities provided by your init >
system.
> For instance, under sysvinit, use
>
>     update-rc.d openarena-server disable
>
> or under systemd, use
>
>     ln -s /dev/null /etc/systemd/system/openarena-server.service
>
> Changing the value of the START_DAEMON variable in
> /etc/default/openarena-server is deprecated. Please leave it set to
> "unless-disabled-by-upgrade".

The relevant commits (it took me a few attempts to get the upgrade logic
right!) are:

http://anonscm.debian.org/gitweb/?p=pkg-games/openarena.git;a=commitdiff;h=ba31d93d6738e27de04d8db10664afdf23143404
http://anonscm.debian.org/gitweb/?p=pkg-games/openarena.git;a=commitdiff;h=c92f557bdd0b7e45806e50b46111582651f19af0
http://anonscm.debian.org/gitweb/?p=pkg-games/openarena.git;a=commitdiff;h=65a9e096397a4a5b9171b660d6e04cc987faf1f5

    S


Reply to: