mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 11:28:59 +00:00
eaf71db7c9
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
10 lines
162 B
Bash
10 lines
162 B
Bash
#!/bin/sh
|
|
|
|
export USERNAME=jb
|
|
export HOME="/home/$USERNAME"
|
|
export SYNCTHING="$HOME/bin/syncthing"
|
|
|
|
exec 2>&1
|
|
exec chpst -u "$USERNAME" "$SYNCTHING" -logflags 0
|
|
|