Add example for runit service

This commit is contained in:
Jakob Borg
2014-11-24 13:48:42 +01:00
parent 9a549a853b
commit a9544ca890
3 changed files with 24 additions and 0 deletions

8
etc/linux-runit/run Normal file
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