#!/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