diff options
author | Michael Hanson <hansonorders@verison.net> | 2010-03-25 00:39:23 (GMT) |
---|---|---|
committer | Michael Hanson <hansonorders@verison.net> | 2010-03-25 00:39:23 (GMT) |
commit | 369bb6314419c513693a3b5546f6272bd0a6a20c (patch) | |
tree | a977fe9c416ce402191a6d12de45164877093e95 /abs/extra-testing/community/network-ups-tools/nut.install | |
parent | 698caea6972d83123dfa9f03b67cbd8598e7a2f3 (diff) | |
download | linhes_pkgbuild-369bb6314419c513693a3b5546f6272bd0a6a20c.zip linhes_pkgbuild-369bb6314419c513693a3b5546f6272bd0a6a20c.tar.gz linhes_pkgbuild-369bb6314419c513693a3b5546f6272bd0a6a20c.tar.bz2 |
network-ups-tools: Found a way to run in the foreground without a loop.
Diffstat (limited to 'abs/extra-testing/community/network-ups-tools/nut.install')
-rw-r--r-- | abs/extra-testing/community/network-ups-tools/nut.install | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/abs/extra-testing/community/network-ups-tools/nut.install b/abs/extra-testing/community/network-ups-tools/nut.install index 5bec199..f7712a6 100644 --- a/abs/extra-testing/community/network-ups-tools/nut.install +++ b/abs/extra-testing/community/network-ups-tools/nut.install @@ -8,11 +8,18 @@ post_install() { echo ">>> Before starting your UPSd daemon, you must" echo ">>> edit /etc/ups/ups.conf in order to set your" echo ">>> UPS driver and port." - echo ">>> Then add upsd as a service." - echo ">>> $ sudo add_service.sh upsd." + echo ">>> Then add the following services: upsdrvctl | upsd | upsmon" + echo ">>> i.e. $ sudo add_service.sh upsdrvctl." +} + +post_upgrade() { + echo ">>> Ensure the following services exist: upsdrvctl | upsd | upsmon" + echo ">>> i.e. $ sudo add_service.sh upsdrvctl." } pre_remove() { + remove_service.sh upsdrvctl + remove_service.sh upsmon remove_service.sh upsd userdel nut >/dev/null 2>&1 groupdel nut >/dev/null 2>&1 |