Fix systemd control, [f18f46ab5a].
authorRoy Marples <roy@marples.name>
Fri, 13 May 2016 10:44:24 +0000 (10:44 +0000)
committerRoy Marples <roy@marples.name>
Fri, 13 May 2016 10:44:24 +0000 (10:44 +0000)
resolvconf.in

index db3269d2f0d0e505f790c271884c8e794f7eeacd..33594376a93035e4054723939a27634c0959ed63 100644 (file)
@@ -270,11 +270,11 @@ detect_init()
        local status="@STATUSARG@"
        : ${status:=status}
        if [ -x /bin/systemctl -a -S /run/systemd/private ]; then
-               RESTARTCMD="if /bin/systemctl --quiet is-active; then
+               RESTARTCMD="if /bin/systemctl --quiet is-active \$1.service; then
        /bin/systemctl restart \$1.service;
 fi"
        elif [ -x /usr/bin/systemctl -a -S /run/systemd/private ]; then
-               RESTARTCMD="if /usr/bin/systemctl --quiet is-active; then
+               RESTARTCMD="if /usr/bin/systemctl --quiet is-active \$1.service; then
        /usr/bin/systemctl restart \$1.service;
 fi"
        elif [ -x /sbin/rc-service -a \