systemd-cron-next/units/cron-boot.service.in
2015-07-21 19:23:09 +03:00

16 lines
460 B
SYSTEMD

[Unit]
Description={{ package }} {{ schedule }} script service
Documentation=man:systemd.cron(7)
PartOf=cron-{{ schedule }}.target
RefuseManualStart=yes
RefuseManualStop=yes
ConditionDirectoryNotEmpty={{ confdir }}/cron.{{ schedule }}
ConditionPathExists=!/run/crond.bootdir
OnFailure=cron-failure@%i.service
[Service]
Type=oneshot
IgnoreSIGPIPE=false
ExecStart={{ runparts }} {{ confdir }}/cron.{{ schedule }}
ExecStartPost=/usr/bin/touch /run/crond.bootdir