forked from pool/boinc-client
Stanislav Brabec
2ad9bf9a32
- boinc-client.service: replace ControlGroup= by Slice=, since ControlGroup is gone since systemd-205 already. We now use the "background.slice". Configuration of the background.slice is left to the administrator since it may be shared by other packages, and is subject to preferences. If you need some default to begin with for the first time, use `systemctl set-property background.slice CPUShares=2`. OBS-URL: https://build.opensuse.org/request/show/313409 OBS-URL: https://build.opensuse.org/package/show/network/boinc-client?expand=0&rev=45
20 lines
552 B
Desktop File
20 lines
552 B
Desktop File
[Unit]
|
|
Description=Berkeley Open Infrastructure Network Computing Client
|
|
After=network.target
|
|
|
|
[Service]
|
|
Nice=10
|
|
User=boinc
|
|
CPUSchedulingPolicy=batch
|
|
Slice=background.slice
|
|
PermissionsStartOnly=yes
|
|
ExecStartPre=/bin/sleep 1
|
|
ExecStartPre=/usr/bin/touch /var/log/boinc.log /var/log/boincerr.log
|
|
ExecStartPre=/usr/bin/chown boinc:boinc /var/log/boinc.log /var/log/boincerr.log
|
|
ExecStart=/usr/bin/boinc --dir /var/lib/boinc
|
|
ExecReload=/usr/bin/boinccmd --read_cc_config
|
|
ExecStopPost=/bin/rm -f /var/lib/boinc/lockfile
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|