Skip to content

Instantly share code, notes, and snippets.

@Duncaen
Last active August 29, 2015 14:17
Show Gist options
  • Select an option

  • Save Duncaen/e45154b930da9ceae8ce to your computer and use it in GitHub Desktop.

Select an option

Save Duncaen/e45154b930da9ceae8ce to your computer and use it in GitHub Desktop.
stdin
#!/bin/sh
exec logger -p daemon.info -t syncthing
#!/bin/sh
export USERNAME=syncthing
export HOME="/home/$USERNAME"
exec chpst -u $USERNAME syncthing -logflags 0 -no-restart 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment