~fkooman/php-saml-sp#15: 
php-saml-sp service not (re)started on upgrade on Debian

https://manpages.debian.org/bookworm/debhelper/dh_installsystemd.1.en.html

override_dh_installsystemd:
        dh_installsystemd --no-enable --no-start

The --no-start does not start after upgrade, but apparently this does stop the service on upgrade.

So how to:

  1. not enable, not start the service on install
  2. restart it on upgrade iff it is running

This does not become clear in the manpage...

Status
RESOLVED CLOSED
Submitter
~fkooman
Assigned to
No-one
Submitted
3 months ago
Updated
3 months ago
Labels
No labels applied.

~fkooman 3 months ago*

Perhaps we can just make it safe to start/enable this service/timer by default, maybe it already is safe!

~fkooman 3 months ago

Could this work?

dh_installsystemd --no-enable --no-start --restart-after-upgrade

~fkooman 3 months ago

https://salsa.debian.org/letsencrypt-team/certbot/certbot/-/blob/master/debian/rules?ref_type=heads

override_dh_installsystemd:
	dh_installsystemd --no-start --no-stop-on-upgrade --package=certbot certbot.service
	dh_installsystemd --package=certbot certbot.timer

~fkooman 3 months ago

https://salsa.debian.org/php-team/php-defaults/-/blob/main/debian/rules?ref_type=heads

override_dh_systemd_enable:
	dh_systemd_enable --package=php-common phpsessionclean.timer

override_dh_systemd_start:
	dh_systemd_start --package=php-common phpsessionclean.timer
	dh_systemd_start --package=php-common --no-start phpsessionclean.service

~fkooman REPORTED CLOSED 3 months ago

Register here or Log in to comment, or comment via email.