Package: systemd Version: 232-8 Severity: wishlist When i call /etc/init.d/<script> try-restart on system with systemd, this call is not redirected to systemd. Attached patch fixies this.
-- Package-specific info: -- System Information: Debian Release: stretch/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 4.8.0-2-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages systemd depends on: ii adduser 3.115 ii libacl1 2.2.52-3 ii libapparmor1 2.10.95-8 ii libaudit1 1:2.6.7-1 ii libblkid1 2.29-1 ii libc6 2.24-8 ii libcap2 1:2.25-1 ii libcryptsetup4 2:1.7.3-3 ii libgcrypt20 1.7.5-2 ii libgpg-error0 1.26-1 ii libidn11 1.33-1 ii libip4tc0 1.6.0+snapshot20161117-4 ii libkmod2 23-2 ii liblz4-1 0.0~r131-2 ii liblzma5 5.2.2-1.2 ii libmount1 2.29-1 ii libpam0g 1.1.8-3.5 ii libseccomp2 2.3.1-2.1 ii libselinux1 2.6-3 ii libsystemd0 232-8 ii mount 2.29-1 ii util-linux 2.29-1 Versions of packages systemd recommends: ii dbus 1.10.14-1 ii libpam-systemd 232-8 Versions of packages systemd suggests: pn policykit-1 <none> pn systemd-container <none> pn systemd-ui <none> Versions of packages systemd is related to: pn dracut <none> ii initramfs-tools 0.126 ii udev 232-8 -- no debconf information
diff --git a/debian/extra/init-functions.d/40-systemd b/debian/extra/init-functions.d/40-systemd index 459a00049..54b38148a 100644 --- a/debian/extra/init-functions.d/40-systemd +++ b/debian/extra/init-functions.d/40-systemd @@ -50,6 +50,9 @@ systemctl_redirect () { restart) s="Restarting $prog (via systemctl)" ;; + try-restart) + s="Restarting if running $prog (via systemctl)" + ;; esac service="${prog%.sh}.service" @@ -82,7 +85,8 @@ if [ "$_use_systemctl" = "1" ]; then "x$1" = xrestart -o \ "x$1" = xreload -o \ "x$1" = xforce-reload -o \ - "x$1" = xstatus ] ; then + "x$1" = xstatus -o \ + "x$1" = xtry-restart ] ; then systemctl_redirect $0 $1 exit $?
_______________________________________________ Pkg-systemd-maintainers mailing list Pkg-systemd-maintainers@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-systemd-maintainers