mirror of
https://github.com/rwinkhart/unifi-shutd.git
synced 2026-08-27 20:36:25 -04:00
Add OpenRC service and basic documentation
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#!/sbin/openrc-run
|
||||
supervisor=supervise-daemon
|
||||
|
||||
name="UniFi UPS safe shutdown"
|
||||
|
||||
command="/usr/local/bin/unifi-shutd"
|
||||
command_args="<ip:port> <ups id> <scan interval> <bad scan limit>"
|
||||
|
||||
depend() {
|
||||
need net localmount
|
||||
after firewall
|
||||
}
|
||||
Reference in New Issue
Block a user