summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/community/network-ups-tools/finish.upsd
blob: 4596ff137f47584e8a1f79ada3cf486ab6f5bd86 (plain)
1
2
3
4
5
6
7
8
9
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