Add example for runit service

This commit is contained in:
Jakob Borg committed 2014-11-24 13:48:42 +01:00
1 parent 9a549a853b
commit a9544ca890
3 files changed
+24

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
export USERNAME=jb
export HOME="/home/$USERNAME"
export SYNCTHING="$HOME/bin/syncthing"
setuidgid "$USERNAME" "$SYNCTHING" -logflags 0 2>&1 | logger -t syncthing