2013-10-28 11:17:07 +01:00
|
|
|
[Unit]
|
|
|
|
Description=Berkeley Open Infrastructure Network Computing Client
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Nice=10
|
|
|
|
User=boinc
|
2015-06-26 16:20:32 +02:00
|
|
|
CPUSchedulingPolicy=batch
|
|
|
|
Slice=background.slice
|
2013-10-28 11:17:07 +01:00
|
|
|
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
|