zilexa

Syncthing systemd service with NICE level

Oct 29th, 2015
213
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.  
  9. [Service]
  10. User=osmc
  11. Nice=7
  12. Environment=STNORESTART=yes
  13. ExecStart=/usr/bin/syncthing -no-browser -logflags=0
  14. Restart=on-failure
  15. SuccessExitStatus=2 3 4
  16. RestartForceExitStatus=3 4
  17.  
  18. [Install]
  19. WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment