nut-server.init 223 B

1234567891011121314151617181920212223
  1. #!/bin/sh /etc/rc.common
  2. START=50
  3. USE_PROCD=1
  4. restart() {
  5. stop_service
  6. start_service
  7. }
  8. start_service() {
  9. upsdrvctl start
  10. upsd
  11. }
  12. stop_service() {
  13. upsd -c stop
  14. upsdrvctl stop
  15. }
  16. reload_service() {
  17. upsd -c reload
  18. }