diff options
author | Michael Hanson <hansonorders@verison.net> | 2010-03-22 19:35:17 (GMT) |
---|---|---|
committer | Michael Hanson <hansonorders@verison.net> | 2010-03-22 19:35:17 (GMT) |
commit | dbff62a9a2550bd0bed77860fa4164d74c90dfb3 (patch) | |
tree | 4edaba6f3a03fd4e72b63145d976fc35e6553789 /abs/extra-testing/community/network-ups-tools/run | |
parent | 355f5d31dfb3bf803bfd20c9ba6537405c59aba4 (diff) | |
download | linhes_pkgbuild-dbff62a9a2550bd0bed77860fa4164d74c90dfb3.zip linhes_pkgbuild-dbff62a9a2550bd0bed77860fa4164d74c90dfb3.tar.gz linhes_pkgbuild-dbff62a9a2550bd0bed77860fa4164d74c90dfb3.tar.bz2 |
network-ups-tools: trying to make it work with runit.
added an infinite loop to the run file to keep it from exiting.
Diffstat (limited to 'abs/extra-testing/community/network-ups-tools/run')
-rw-r--r-- | abs/extra-testing/community/network-ups-tools/run | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/abs/extra-testing/community/network-ups-tools/run b/abs/extra-testing/community/network-ups-tools/run index f549950..c4985fd 100644 --- a/abs/extra-testing/community/network-ups-tools/run +++ b/abs/extra-testing/community/network-ups-tools/run @@ -7,7 +7,7 @@ PID=`pidof -o %PPID /usr/sbin/upsd` stat_runit "Starting UPSd Daemon" /usr/bin/upsdrvctl start &> /dev/null - [ -z "$PID" ] && /usr/sbin/upsd -f &>/dev/null + [ -z "$PID" ] && /usr/sbin/upsd &>/dev/null /usr/sbin/upsmon &>/dev/null if [ $? -gt 0 ]; then stat_fail @@ -15,3 +15,7 @@ PID=`pidof -o %PPID /usr/sbin/upsd` add_daemon upsd stat_done fi + + while [ -n $PID ] ; do + sleep 60 + done |