forked from pool/boinc-client
20 lines
544 B
SYSTEMD
20 lines
544 B
SYSTEMD
|
[Unit]
|
||
|
Description=Berkeley Open Infrastructure Network Computing Client
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
Nice=10
|
||
|
User=boinc
|
||
|
CPUShares=2
|
||
|
ControlGroup=cpu:/background
|
||
|
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
|