Fix restarting services on OpenBSD.
authorRoy Marples <roy@marples.name>
Wed, 24 Feb 2016 17:16:46 +0000 (17:16 +0000)
committerRoy Marples <roy@marples.name>
Wed, 24 Feb 2016 17:16:46 +0000 (17:16 +0000)
resolvconf.in

index 1e1e1761ee5c245f7e47c2a0f85f00f8f54a404a..4a2ed2807347a6b0184d1723f49a17cc4fb7b0ae 100644 (file)
@@ -320,8 +320,9 @@ fi"
        /etc/rc.d/rc.\$1 restart;
 fi"
        elif [ -e /etc/rc.d/rc.subr -a -d /etc/rc.d ]; then
-               RESTARTCMD="if /etc/rc.d/rc.\$1 check 1>/dev/null 2>&1; then
-       /etc/rc.d/rc.\$1 restart;
+               # OpenBSD
+               RESTARTCMD="if /etc/rc.d/\$1 check 1>/dev/null 2>&1; then
+       /etc/rc.d/\$1 restart;
 fi"
        else
                for x in /etc/init.d/rc.d /etc/rc.d /etc/init.d; do