From 810aee92ffeee92136b79725021afea0b3c04305 Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Sun, 16 Jan 2011 12:25:46 +0100 Subject: [PATCH] Don't use systemctl redirect for init scripts with X-Interactive: true --- debian/changelog | 1 + debian/lsb-base-logging.sh | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 9ae64845..c13b34f6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,7 @@ systemd (16-1) experimental; urgency=low * New upstream release. Closes: #609611 * Get rid of now obsolete patches that are upstream. * Use the built-in cryptsetup support in systemd. + * Don't use systemctl redirect for init scripts with X-Interactive: true [ Michael Biebl ] * Update package description diff --git a/debian/lsb-base-logging.sh b/debian/lsb-base-logging.sh index cad93c9f..57f45533 100644 --- a/debian/lsb-base-logging.sh +++ b/debian/lsb-base-logging.sh @@ -20,7 +20,10 @@ if [ -e /sys/fs/cgroup/systemd ] ; then if [ $PPID -ne 1 ] && [ -z "$init" ] && [ -z "$_SYSTEMCTL_SKIP_REDIRECT" ] ; then case "$0" in /etc/init.d/*) - _use_systemctl=1 + # Don't redirect if the init script has X-Interactive: true + if ! grep -qs "X-Interactive: true" "$0"; then + _use_systemctl=1 + fi ;; esac else -- 2.39.5