summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/community/network-ups-tools/finish.upsd
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra-testing/community/network-ups-tools/finish.upsd')
-rw-r--r--abs/extra-testing/community/network-ups-tools/finish.upsd10
1 files changed, 10 insertions, 0 deletions
diff --git a/abs/extra-testing/community/network-ups-tools/finish.upsd b/abs/extra-testing/community/network-ups-tools/finish.upsd
new file mode 100644
index 0000000..4596ff1
--- /dev/null
+++ b/abs/extra-testing/community/network-ups-tools/finish.upsd
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+svwaitdown -t 3 -k /var/service/upsdrvctl /var/service/upsmon || exit 1
+
+PID=`pidof -o %PPID /usr/sbin/upsd`
+ stat_runit "Stopping UPSd Daemon"
+ [ ! -z "$PID" ] && kill $PID &> /dev/null