0eff130158
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.
5 lines
69 B
Bash
Executable File
5 lines
69 B
Bash
Executable File
#!/bin/sh
|
|
|
|
systemctl daemon-reload
|
|
systemctl try-restart cron.target
|