core-agent-linux/vm-systemd/crond.service.d/30_qubes.conf
Marek Marczykowski-Górecki 5e08e2bc1d
systemd: order units checking for qubes-service after qubes-sysinit
Files in /var/run/qubes-service are created by qubes-sysinit.service. So
defer that condition check after that service start.

Thanks @adrelanos for the report.

Fixes QubesOS/qubes-issues#1985
2016-05-12 00:17:05 +02:00

12 lines
282 B
Plaintext

[Unit]
ConditionPathExists=/var/run/qubes-service/crond
[Unit]
# For /rw
After=qubes-misc-post.service qubes-sysinit.service
[Service]
ExecStartPre=/bin/mkdir --mode=0700 -p /rw/cron
ExecStartPre=/bin/mount --bind /rw/cron /var/spool/cron
ExecStopPost=/bin/umount /var/spool/cron