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