Logo
Explore Help
Sign In
perso/syncthing-arm
1
0
Fork 0
You've already forked syncthing-arm
Code Issues Pull Requests Releases Wiki Activity
syncthing-arm/etc/linux-runit/run

10 lines
162 B
Plaintext
Raw Normal View History

Add example for runit service
2014-11-24 13:48:42 +01:00
#!/bin/sh
export USERNAME=jb
export HOME="/home/$USERNAME"
export SYNCTHING="$HOME/bin/syncthing"
Fix syncthing process reparenting with runit When you: `sudo sv down /etc/service/syncthing/` the `TERM` signal isn't propogated or trapped, so syncthing is orphaned and adopted by init (PID 1). - Changed call to `chpst` to `exec` - Moved logging to `log/run` per `runsv` standard
2015-03-10 00:43:33 -05:00
exec 2>&1
exec chpst -u "$USERNAME" "$SYNCTHING" -logflags 0
Add example for runit service
2014-11-24 13:48:42 +01:00
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.7 Page: 419ms Template repo/home: 6ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API