nut-monitor.init 199 B

123456789101112131415161718192021
  1. #!/bin/sh /etc/rc.common
  2. START=60
  3. USE_PROCD=1
  4. restart() {
  5. stop_service
  6. start_service
  7. }
  8. start_service() {
  9. upsmon -p
  10. }
  11. stop_service() {
  12. upsmon -c stop
  13. }
  14. reload_service() {
  15. upsmon -c reload
  16. }