2013-10-28 11:17:07 +01:00
|
|
|
[Unit]
|
|
|
|
Description=Berkeley Open Infrastructure Network Computing Client
|
2018-08-06 15:31:58 +02:00
|
|
|
Documentation=man:boinc(1)
|
|
|
|
After=network-online.target
|
2013-10-28 11:17:07 +01:00
|
|
|
|
|
|
|
[Service]
|
2018-08-06 15:31:58 +02:00
|
|
|
Type=simple
|
2017-02-25 01:53:52 +01:00
|
|
|
EnvironmentFile=-/etc/sysconfig/boinc-client
|
2013-10-28 11:17:07 +01:00
|
|
|
Nice=10
|
|
|
|
User=boinc
|
2018-08-06 15:31:58 +02:00
|
|
|
ProtectHome=true
|
2015-06-26 16:20:32 +02:00
|
|
|
CPUSchedulingPolicy=batch
|
|
|
|
Slice=background.slice
|
2017-02-25 01:53:52 +01:00
|
|
|
### boinc logs (with --redirectio) to stdoutdae.txt and stderrdae.txt
|
2018-08-06 15:31:58 +02:00
|
|
|
#PermissionsStartOnly=yes
|
2017-02-25 01:53:52 +01:00
|
|
|
#ExecStartPre=/bin/sleep 1
|
|
|
|
#ExecStartPre=/usr/bin/touch /var/log/boinc-client.log /var/log/boinc-client.err.log
|
|
|
|
#ExecStartPre=/usr/bin/chown $BOINC_BOINC_USR:$BOINC_BOINC_GRP /var/log/boinc-client.log /var/log/boinc-client.err.log
|
|
|
|
ExecStart=/usr/bin/boinc --dir $BOINC_BOINC_DIR $BOINC_BOINC_OPTS
|
2018-08-06 15:31:58 +02:00
|
|
|
ExecStop=/usr/bin/boinccmd --quit
|
2013-10-28 11:17:07 +01:00
|
|
|
ExecReload=/usr/bin/boinccmd --read_cc_config
|
2017-02-25 01:53:52 +01:00
|
|
|
ExecStopPost=/bin/rm -f $BOINC_BOINC_DIR/lockfile
|
2013-10-28 11:17:07 +01:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|