Skip to content

Instantly share code, notes, and snippets.

@Duncaen
Created March 5, 2015 21:49
Show Gist options
  • Save Duncaen/87a26d8dfb7ea592d240 to your computer and use it in GitHub Desktop.
Save Duncaen/87a26d8dfb7ea592d240 to your computer and use it in GitHub Desktop.
$ git diff --no-prefix;
$ git diff --no-prefix
diff --git configure configure
index a32cc1c..fefad31 100755
--- configure
+++ configure
@@ -194,6 +194,18 @@ if [ -z "$RESTARTCMD" ]; then
fi
done
fi
+if [ -z "$RESTARTCMD" ]; then
+ printf "Checking for runit... "
+ if [ -x /bin/sv]; then
+ RESTARTCMD="/bin/sv restart \1"
+ echo "yes"
+ elif [ -x /usr/bin/sv ]; then
+ RESTARTCMD="/usr/bin/sv restart \1"
+ echo "yes"
+ else
+ echo "no"
+ fi
+fi
if [ -z "$RESTARTCMD" ]; then
echo "$0: WARNING: No means of interacting with system services detected!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment