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

9 lines
265 B
SYSTEMD

[Unit]
Description={{ package }} update units
Documentation=man:systemd.cron(7)
[Service]
Type=oneshot
ExecStartPre=/usr/bin/touch /run/crond.reboot
ExecStart=/bin/sh -c '{{ bindir }}/systemctl daemon-reload ; sleep 1 ; {{ bindir }}/systemctl restart cron.target'