[systemd-devel] Failed at step RUNTIME_DIRECTORY spawning /usr/bin/true: File exists

Reindl Harald h.reindl at thelounge.net
Sat Aug 1 02:54:09 PDT 2015


Am 27.07.2015 um 21:39 schrieb Lennart Poettering:
> On Wed, 15.07.15 16:24, Reindl Harald (h.reindl at thelounge.net) wrote:
>
>> why does systemd *randomly* try to create "RuntimeDirectory"
>> for "ExecStartPost" and so terminates a perfectly up and running service
>> because the "file exists" error?
>>
>> Fedora 21 as well as Fedora 22
>> https://bugzilla.redhat.com/show_bug.cgi?id=1226509#c3
>>
>> Jul 15 16:19:43 rawhide systemd: Stopping Test Unit...
>> Jul 15 16:19:43 rawhide systemd: Stopped Test Unit.
>> Jul 15 16:19:43 rawhide systemd: Starting Test Unit...
>> Jul 15 16:19:43 rawhide systemd: Failed at step RUNTIME_DIRECTORY spawning
>> /usr/bin/true: File exists
>> Jul 15 16:19:43 rawhide systemd: test2.service: control process exited,
>> code=exited status=233
>> Jul 15 16:19:43 rawhide systemd: Failed to start Test Unit.
>> Jul 15 16:19:43 rawhide systemd: Unit test2.service entered failed state.
>> Jul 15 16:19:43 rawhide systemd: test2.service failed.
>
> Can you file an issue about this on github with a reproducer for v221
> or v222? Thanks!

the reproducer is in 
https://bugzilla.redhat.com/show_bug.cgi?id=1226509#c3 just a few lines 
of a systemd-unit

dunno if this affects v221 and v222 too - Fedora user
but it is very likely since it exists from v216 to v219

why not just dig in the code and remove that completly useless "file 
exists" check instead be happy that the folder is already there?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20150801/ff9acd04/attachment.sig>


More information about the systemd-devel mailing list