Description of problem: chrony-helper command fails when used in systemd ExecStartPost= Version-Release number of selected component (if applicable): chrony-1.26-2.fc16.x86_64 Additional info: Date: Mon, 5 Sep 2011 13:13:03 +0200 From: Miroslav Lichvar <mlichvar> To: Albert Strasheim <albert.strasheim> Cc: Lennart Poettering <lennart> Subject: Re: Problem with chrony helper script and systemd Message-ID: <20110905111303.GA5614@localhost> References: <CALfB72A0_SaKMJg=TNKXutQSUxvCnrVnCBbSpgod7koJXii2=w.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <CALfB72A0_SaKMJg=TNKXutQSUxvCnrVnCBbSpgod7koJXii2=w.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 On Sun, Sep 04, 2011 at 02:01:00PM +0200, Albert Strasheim wrote: > Hello guys > > I am testing chrony-1.26-2.fc16.x86_64 with systemd-34-1.fc16.x86_64. > chronyd.service - NTP client/server > Loaded: loaded (/etc/systemd/system/chronyd.service; enabled) > Active: active (running) since Sun, 04 Sep 2011 11:53:45 +0000; 1s ago > Process: 5953 ExecStartPost=/usr/libexec/chrony-helper command add > server ${SERVER0} iburst (code=exited, status=3) > Process: 5946 ExecStartPre=/usr/libexec/chrony-helper > generate-commandkey (code=exited, status=0/SUCCESS) > Main PID: 5952 (chronyd) > CGroup: name=systemd:/system/chronyd.service > - 5952 /usr/sbin/chronyd -n -u chrony > The progam that has actually exited with status 3 is > > systemctl status chronyd.service I think that might be working as expected. The service is probably not considered as running until all ExecStart* directives are complete. Can you please file a bug against chrony to add an option to the chrony-helper script which would shortcut the service check? Thanks, -- Miroslav Lichvar
The chrony-helper scripts now has "forced-command" command which doesn't check if the service is running.
chrony-1.26-3.20110831gitb088b7.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/chrony-1.26-3.20110831gitb088b7.fc16
Package chrony-1.26-3.20110831gitb088b7.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing chrony-1.26-3.20110831gitb088b7.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/chrony-1.26-3.20110831gitb088b7.fc16 then log in and leave karma (feedback).
chrony-1.26-3.20110831gitb088b7.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/chrony-1.26-3.20110831gitb088b7.fc15
chrony-1.26-3.20110831gitb088b7.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.
chrony-1.26-3.20110831gitb088b7.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.