Support runit, fixes [4bfe134d80].
authorRoy Marples <roy@marples.name>
Fri, 6 Mar 2015 09:55:12 +0000 (09:55 +0000)
committerRoy Marples <roy@marples.name>
Fri, 6 Mar 2015 09:55:12 +0000 (09:55 +0000)
configure

index a32cc1c653ee7d893be2d36875cbadb869756c2a..190ee71a9f92646fc57c1828a2980b546908b17d 100755 (executable)
--- a/configure
+++ b/configure
@@ -182,6 +182,18 @@ if [ -z "$RESTARTCMD" ]; then
        fi
 fi
 if [ -z "$RESTARTCMD" ]; then
+       printf "Checking for runit... "
+       if [ -x /bin/sv ]; then
+               RESTARTCMD="/bin/sv try-restart \1"
+               echo "yes"
+       elif [ -x /usr/bin/sv ]; then
+               RESTARTCMD="/usr/bin/sv try-restart \1"
+               echo "yes"
+       else
+               echo "no"
+       fi
+fi
+if [ -z "$RESTARTCMD" ]; then
        for x in /etc/init.d/rc.d /etc/rc.d /etc/init.d; do
                printf "Checking for $x ... "
                if [ -d $x ]; then