summaryrefslogtreecommitdiff
path: root/init.d/syncthing
diff options
context:
space:
mode:
Diffstat (limited to 'init.d/syncthing')
-rwxr-xr-xinit.d/syncthing15
1 files changed, 15 insertions, 0 deletions
diff --git a/init.d/syncthing b/init.d/syncthing
new file mode 100755
index 0000000..96b9981
--- /dev/null
+++ b/init.d/syncthing
@@ -0,0 +1,15 @@
+#!/sbin/openrc-run
+
+description="Syncthing user service"
+
+command="syncthing"
+command_args="--no-browser --no-restart"
+
+supervisor=supervise-daemon
+output_logger="logger -t '${RC_SVCNAME}' -p daemon.info"
+error_logger="logger -t '${RC_SVCNAME}' -p daemon.error"
+
+depend() {
+ use logger dns net
+ after firewall
+}