summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2019-12-02 18:45:15 -0600
committerJohn Klug <john.klug@multitech.com>2019-12-02 18:45:15 -0600
commitf230e0b1d9e027e6f98f218efbb74946b7a94b92 (patch)
tree3cfb484e376d053ec2d677c2c4a2cc37c3784880
parentc2d9d4d291bef71a61cb6f496d42bd7adec1aa26 (diff)
downloadcommissioning-f230e0b1d9e027e6f98f218efbb74946b7a94b92.tar.gz
commissioning-f230e0b1d9e027e6f98f218efbb74946b7a94b92.tar.bz2
commissioning-f230e0b1d9e027e6f98f218efbb74946b7a94b92.zip
Script to turn off commissioning server
-rwxr-xr-xusr/share/commissioning/off/off.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/share/commissioning/off/off.sh b/usr/share/commissioning/off/off.sh
new file mode 100755
index 0000000..5be4eb4
--- /dev/null
+++ b/usr/share/commissioning/off/off.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+sleep 30
+/etc/init.d/commissioning stop 2>&1 | logger -p local0.crit
+/etc/init.d/php-fpm-commission stop 2>&1 | logger -p local0.crit