Hi Evgeni,

On Sat, Mar 11, 2017 at 02:15:06PM +0100, Evgeni Golov wrote:
> To recap, the behaviour should be as follows (IMHO):
> on fresh install, the service is disabled and not started
> on upgrade
> * if the service was enabled, it remains enabled and gets restarted
> * if the service was disabled, it remains so and is not started
> 
> For fresh install this is easy, just ommit the
>  update-rc.d thinkfan defaults
> call in postinst and be done (invoke-rc.d should behave properly)
> 
> For upgrades, we'd need something like:
>  if update-rc.d thinkfan is-enabled;
>    update-rc.d thinkfan defaults
>  fi
> or
>  update-rc.d thinkfan defaults-desabled
> Again, trusting that invoke-rc.d will behave properly afterwards.
> 
> But we don't have these commands :(

Yeah; good summary.
If the half-broken --no-start option would be used (to fix the RC bug) 
then maybe a NEWS.Debian file could be shipped to inform about the steps 
to take in case of upgrades.

Wolfgang

Attachment: signature.asc
Description: PGP signature

Reply via email to