summary refs log tree commit diff
path: root/services/upsdrvctl
diff options
context:
space:
mode:
authorYpnose <linuxien@legtux.org>2014-05-01 20:18:58 +0200
committerYpnose <linuxien@legtux.org>2014-05-01 20:18:58 +0200
commit113f70fb56368a87d39027fa6f8c3044ea357971 (patch)
tree8f89fd5d616bbf34ab5f1a761a927c9dd5a8934b /services/upsdrvctl
parent31ee3d7e6d13cf79f627a1dd8f3abc9836b6bdcc (diff)
downloadrunit-void-113f70fb56368a87d39027fa6f8c3044ea357971.tar.gz
runit-void-113f70fb56368a87d39027fa6f8c3044ea357971.tar.xz
runit-void-113f70fb56368a87d39027fa6f8c3044ea357971.zip
New service: upsdrvctl
Diffstat (limited to 'services/upsdrvctl')
-rwxr-xr-xservices/upsdrvctl/run5
l---------services/upsdrvctl/supervise1
2 files changed, 6 insertions, 0 deletions
diff --git a/services/upsdrvctl/run b/services/upsdrvctl/run
new file mode 100755
index 0000000..a260c3a
--- /dev/null
+++ b/services/upsdrvctl/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+# Network UPS Tools - driver controller
+
+echo "Starting upsdrvctl..."
+exec /usr/bin/upsdrvctl -D start
diff --git a/services/upsdrvctl/supervise b/services/upsdrvctl/supervise
new file mode 120000
index 0000000..fc01b1f
--- /dev/null
+++ b/services/upsdrvctl/supervise
@@ -0,0 +1 @@
+/run/runit/supervise.upsdrvctl
\ No newline at end of file