22 lines
199 B
Plaintext
22 lines
199 B
Plaintext
|
#!/bin/sh /etc/rc.common
|
||
|
|
||
|
START=60
|
||
|
USE_PROCD=1
|
||
|
|
||
|
restart() {
|
||
|
stop_service
|
||
|
start_service
|
||
|
}
|
||
|
|
||
|
start_service() {
|
||
|
upsmon -p
|
||
|
}
|
||
|
|
||
|
stop_service() {
|
||
|
upsmon -c stop
|
||
|
}
|
||
|
|
||
|
reload_service() {
|
||
|
upsmon -c reload
|
||
|
}
|