start-syncthing 404 B

123456789101112131415
  1. #!/usr/bin/env bash
  2. if ! ps aux | grep '[0-9] [s]yncthing$' ; then
  3. echo no syncthing running
  4. tmu -e syncthing syncthing syncthing
  5. else
  6. echo synthing running, not starting
  7. fi
  8. if ! ps aux | grep ' [s]yncthing-tray' ; then
  9. echo no syncthing-tray running
  10. tmu -e syncthing syncthing-tray "syncthing-tray -api '${SYNCTHING_API_KEY}'"
  11. else
  12. echo syncthing-tray running, not starting
  13. fi