Advertisement
Guest User

Untitled

a guest
Jan 27th, 2020
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. $ cat /lib/systemd/system/boinc-client.service
  2. [Unit]
  3. Description=Berkeley Open Infrastructure Network Computing Client
  4. Documentation=man:boinc(1)
  5. After=network-online.target
  6.  
  7. [Service]
  8. Type=simple
  9. ProtectHome=true
  10. PrivateTmp=true
  11. ProtectSystem=strict
  12. ProtectControlGroups=true
  13. ReadWritePaths=-/var/lib/boinc -/etc/boinc-client
  14. Nice=10
  15. User=boinc
  16. WorkingDirectory=/var/lib/boinc
  17. ExecStart=/usr/bin/boinc
  18. ExecStop=/usr/bin/boinccmd --quit
  19. ExecReload=/usr/bin/boinccmd --read_cc_config
  20. ExecStopPost=/bin/rm -f lockfile
  21. IOSchedulingClass=idle
  22. Restart=on-failure
  23. # The following options prevent setuid root as they imply NoNewPrivileges=true
  24. # Since Atlas requires setuid root, they break Atlas
  25. # In order to improve security, if you're not using Atlas,
  26. # Add these options to the [Service] section of an override file using
  27. # sudo systemctl edit boinc-client.service
  28. #NoNewPrivileges=true
  29. #ProtectKernelModules=true
  30. #ProtectKernelTunables=true
  31. #RestrictRealtime=true
  32. #RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
  33. #RestrictNamespaces=true
  34. #PrivateUsers=true
  35. #CapabilityBoundingSet=
  36. #MemoryDenyWriteExecute=true
  37.  
  38. [Install]
  39. WantedBy=multi-user.target
  40.  
  41. $ ll /var/lib/boinc
  42. lrwxrwxrwx 1 boinc boinc 12 Sep 30 11:43 /var/lib/boinc -> boinc-client/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement