16 lines
460 B
SYSTEMD
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
|