feat: 更新omc和sshsvc服务配置,增加Wants依赖并调整RestartSec时间
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=omc service daemon
|
Description=omc service daemon
|
||||||
After=network-online.target kvdb.service
|
After=network-online.target kvdb.service
|
||||||
|
Wants=network-online.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
@@ -9,7 +10,7 @@ LimitNPROC=65535
|
|||||||
|
|
||||||
Restart=always
|
Restart=always
|
||||||
ExecStart=/usr/local/bin/omc -c /usr/local/etc/omc/omc.yaml
|
ExecStart=/usr/local/bin/omc -c /usr/local/etc/omc/omc.yaml
|
||||||
RestartSec=2
|
RestartSec=3
|
||||||
RestartPreventExitStatus=SIGTERM SIGKILL
|
RestartPreventExitStatus=SIGTERM SIGKILL
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=OMC SSH MML service daemon
|
Description=OMC SSH MML service daemon
|
||||||
After=network-online.target mysql.service
|
After=network-online.target mysql.service
|
||||||
|
Wants=network-online.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
@@ -9,9 +10,9 @@ LimitNPROC=65535
|
|||||||
|
|
||||||
Restart=always
|
Restart=always
|
||||||
ExecStart=/usr/local/bin/sshsvc -c /usr/local/etc/omc/sshsvc.yaml
|
ExecStart=/usr/local/bin/sshsvc -c /usr/local/etc/omc/sshsvc.yaml
|
||||||
RestartSec=2
|
RestartSec=3
|
||||||
RestartPreventExitStatus=SIGTERM SIGKILL
|
RestartPreventExitStatus=SIGTERM SIGKILL
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|||||||
Reference in New Issue
Block a user