Advertisement
zilexa

Syncthing systemd service with NICE level

Oct 29th, 2015
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #Syncthing systemd service file for OSMC
  2. #Path should be /lib/systemd/system/syncthing.service
  3.  
  4. [Unit]
  5. Description=Syncthing - OSMC
  6. Documentation=http://docs.syncthing.net/
  7. After=network.target
  8. Wants=syncthing-inotify@.service
  9.  
  10. [Service]
  11. User=osmc
  12. Nice=7
  13. Environment=STNORESTART=yes
  14. ExecStart=/usr/bin/syncthing -no-browser -logflags=0
  15. Restart=on-failure
  16. SuccessExitStatus=2 3 4
  17. RestartForceExitStatus=3 4
  18.  
  19. [Install]
  20. WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement