[Pkg-systemd-maintainers] Bug#721244: Use command line parameter instead of env var for purging a service

Michael Biebl biebl at debian.org
Thu Aug 29 12:49:08 BST 2013


Package: dh-systemd
Version: 1.8
Severity: normal

dh-systemd generates that sets _DEB_SYSTEMD_HELPER_PURGE=1 in postrm
which modifies the behaviour of "deb-systemd-helper disable"

I think it would be nicer, to use an explicit verb for that special
cleanup, i.e. "deb-systemd-helper purge".

The postrm code would then look like this:

if [ "$1" = "remove" ]; then
	if [ -x "/usr/bin/deb-systemd-helper" ]; then
		deb-systemd-helper disable foo.service >/dev/null
	fi
fi
if [ "$1" = "purge" ]; then
	if [ -x "/usr/bin/deb-systemd-helper" ]; then
		deb-systemd-helper purge foo.service >/dev/null
	fi
fi


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.10-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages dh-systemd depends on:
ii  debhelper  9.20130720
ii  perl       5.14.2-21

dh-systemd recommends no packages.

dh-systemd suggests no packages.

-- no debconf information




More information about the Pkg-systemd-maintainers mailing list