localhost system # cat /lib/systemd/system/boinc-client.service
[Unit]
Description=Berkeley Open Infrastructure Network Computing Client
After=
network.target[Service]
Nice=10
User=boinc
ExecStartPre=/bin/sleep 1
ExecStartPre=/bin/touch /var/log/boinc.log /var/log/boincerr.log
ExecStartPre=/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.targetlocalhost system # sudo systemctl restart boinc-client
Warning: The unit file, source configuration file or drop-ins of boinc-client.service changed on disk. Run 'systemctl daemon-reload' to reload units.
localhost system # sudo systemctl daemon-reload
localhost system # sudo systemctl restart boinc-client
localhost system # sudo systemctl status boinc-client
● boinc-client.service - Berkeley Open Infrastructure Network Computing Client
Loaded: loaded (/lib/systemd/system/boinc-client.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2021-05-07 10:59:12 +04; 6s ago
Process: 14732 ExecStartPre=/bin/sleep 1 (code=exited, status=0/SUCCESS)
Process: 14733 ExecStartPre=/bin/touch /var/log/boinc.log /var/log/boincerr.log (code=exited, status=0/SUCCESS)
Process: 14734 ExecStartPre=/bin/chown boinc:boinc /var/log/boinc.log /var/log/boincerr.log (code=exited, status=0/SUCCESS)
Process: 14735 ExecStart=/usr/bin/boinc --dir /var/lib/boinc (code=exited, status=193)
Process: 14743 ExecStopPost=/bin/rm -f /var/lib/boinc/lockfile (code=exited, status=0/SUCCESS)
Main PID: 14735 (code=exited, status=193)
мая 07 10:59:11 localhost.localdomain systemd[1]: Starting Berkeley Open Infrastructure Network Computing Client...
мая 07 10:59:12 localhost.localdomain systemd[1]: Started Berkeley Open Infrastructure Network Computing Client.
мая 07 10:59:12 localhost.localdomain systemd[1]: boinc-client.service: Main process exited, code=exited, status=193/n/a
мая 07 10:59:12 localhost.localdomain systemd[1]: boinc-client.service: Failed with result 'exit-code'.