* Update configure flags, use rootprefix instead of rootdir.
* Copy intltool files instead of symlinking them.
* Re-indent init-functions script.
+ * Remove workarounds for services using X-Interactive. The LSB X-Interactive
+ support turned out to be broken and has been removed upstream so we no
+ longer need any special handling for those type of services.
-- Tollef Fog Heen <tfheen@debian.org> Tue, 07 Feb 2012 21:36:34 +0100
if [ $PPID -ne 1 ] && [ -z "$init" ] && [ -z "$_SYSTEMCTL_SKIP_REDIRECT" ]; then
case $(readlink -f "$0") in
/etc/init.d/*)
- # Don't redirect if the init script has X-Interactive: true
- if ! grep -qs "^# X-Interactive:.*true" "$0"; then
- _use_systemctl=1
- fi
- # Redirect if there's a matching .service file in /etc or /lib
- prog=${0##*/}
- service="${prog%.sh}.service"
- fp=$(systemctl -p FragmentPath show $service 2>/dev/null | sed 's/^FragmentPath=//')
- case "$fp" in
- /lib/systemd/system/*|/etc/systemd/system/*)
- _use_systemctl=1
- ;;
- esac
+ _use_systemctl=1
# Some services can't reload through the .service file,
# but can through the init script.
if [ "$(systemctl -p CanReload show $service 2>/dev/null)" = "CanReload=no" ] && [ "$1" = "reload" ]; then
[Unit]
Description=Getty on %I
BindTo=dev-%i.device
-After=dev-%i.device systemd-user-sessions.service plymouth-quit-wait.service openvpn.service apache2.service
+After=dev-%i.device systemd-user-sessions.service plymouth-quit-wait.service
m4_ifdef(`TARGET_FEDORA',
After=rc-local.service
)m4_dnl