systemd-cron-next/systemd-crontab-update
Daniel Schaal 0eff130158 Use try-restart cron.target to only start it when it was active before.
Using try-restart cron.target gets only restarted when it was started before,
this way it won't get started when the administrator has decided to not enable
or start it.
2014-07-20 16:47:44 +02:00

5 lines
69 B
Bash
Executable File

#!/bin/sh
systemctl daemon-reload
systemctl try-restart cron.target