about summary refs log tree commit diff
path: root/openrc.service
diff options
context:
space:
mode:
Diffstat (limited to 'openrc.service')
-rwxr-xr-xopenrc.service25
1 files changed, 25 insertions, 0 deletions
diff --git a/openrc.service b/openrc.service
new file mode 100755
index 0000000..ea822ae
--- /dev/null
+++ b/openrc.service
@@ -0,0 +1,25 @@
+#!/sbin/openrc-run
+
+description="Bring up svtree"
+
+supervisor=supervise-daemon
+command=/opt/svtree/bin/svtree-run
+
+depend() {
+	need localmount
+
+	need network-online
+	use net
+
+	after podman
+}
+
+start_pre() {
+	/opt/svtree/bin/svtree-init
+}
+
+reload() {
+	/opt/svtree/bin/sv reload
+}
+
+extra_commands="reload"