fix: service start error when reboot
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
[Unit]
|
||||
Description=Cron task daemon
|
||||
After=network-online.target
|
||||
After=network-online.target mysql.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
@@ -9,7 +9,7 @@ LimitNOFILE=65535
|
||||
Restart=always
|
||||
ExecStart=/usr/local/omc/bin/crontask -c /usr/local/omc/etc/crontask.yaml
|
||||
RestartSec=2
|
||||
RestartPreventExitStatus=1
|
||||
RestartPreventExitStatus=SIGTERM SIGKILL
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
|
||||
[Install]
|
||||
|
||||
Reference in New Issue
Block a user