mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 11:28:59 +00:00
338394f8c3
Some distros (Ubuntu, Debian?) don't link `chpst` to `setuidgid`, as it could conflict with djb daemontools installation. If daemontools isn't going to be referenced in the README, then the example runit config should reference the runit packaged utility.
9 lines
174 B
Bash
9 lines
174 B
Bash
#!/bin/sh
|
|
|
|
export USERNAME=jb
|
|
export HOME="/home/$USERNAME"
|
|
export SYNCTHING="$HOME/bin/syncthing"
|
|
|
|
chpst -u "$USERNAME" "$SYNCTHING" -logflags 0 2>&1 | logger -t syncthing
|
|
|