[systemd-devel] why don't "/usr/bin/systemd-run -t" finish within a cronjob anymore?

Reindl Harald h.reindl at thelounge.net
Sat Oct 6 22:26:55 UTC 2018


Fedora 28:

root        7902  0.0  0.0  75008  3532 ?        SN   00:07   0:00
/usr/bin/systemd-run -t -p ProtectSystem=full -p ProtectHome=yes -p
PrivateDevices=yes -p PrivateTmp=yes -p NoNewPrivileges=yes --quiet
--nice=19 --uid=wwwcron --gid=apache /usr/bin/bash
/usr/local/scripts/webalizer.sh

last line of the script:
/usr/bin/echo "$MY_DATE $MY_TIME  Statistiken abgeschlossen." >>
/Volumes/dune/www-servers/_logs/usages.log

last line of the logfile:
07-10-2018 00:12:51  Statistiken abgeschlossen

------------------

"/usr/bin/systemd-run" is started within a root-cronjob like all the
months before - so why in the world does it never finish after upgrade
to F28 with systemd-238-9.git0e0aa59.fc28.x86_64?

------------------

and yes it's "finished" at reboot - until last night the call had
"--unit=webalizer.service" which leaded to erroes that the unit already
exists and execution was skipped - at reboot i had crap bash errors as
system mails

what in the world is going on here?

------------------

and yes there are good reasons to call "systemd-run" from a cron script...


More information about the systemd-devel mailing list