[Bug 1544300] [NEW] Use systemd timer to delay boinc startup
bryan.quigley at canonical.com
Wed Feb 10 21:40:58 UTC 2016
Public bug reported:
Using Ubuntu 16.04 (or any system with systemd)
boinc-client shows up as costing 1 second at boot with systemd-analyze blame due to sleep 1 in service file. I'm guessing this is to try and make boinc have less impact on bootup (it does afaict). If there is a different reason this might all be moot :).
Proposal I'm looking into:
Using systemd timers to tell boinc to start running X amount of time after bootup.
Description=Runs boinc-client service after bootup
Description=Berkeley Open Infrastructure Network Computing Client
#ExecStartPre=/usr/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-client
ExecStopPost=/bin/rm -f /var/lib/boinc-client/lockfile
With the following boinc-client is no longer in the blame list at all!
I disabled the ExecStartPre because boinc-client seemed to start them earlier.
I choose 25s at random for my slow test machine. I'm not sure the best value there.
 man systemd.timer
OnActiveSec=, OnBootSec=, OnStartupSec=, OnUnitActiveSec=, OnUnitInactiveSec=
Defines monotonic timers relative to different starting points: OnActiveSec= defines a timer relative to the moment the timer itself is activated. OnBootSec= defines
a timer relative to when the machine was booted up. OnStartupSec= defines a timer relative to when systemd was first started. OnUnitActiveSec= defines a timer
relative to when the unit the timer is activating was last activated. OnUnitInactiveSec= defines a timer relative to when the unit the timer is activating was last
** Affects: boinc (Ubuntu)
You received this bug notification because you are a member of Debian
BOINC Maintainers, which is subscribed to boinc in Ubuntu.
Use systemd timer to delay boinc startup
To manage notifications about this bug go to:
More information about the pkg-boinc-devel