From 94481d36cd0f568a40de6364d8433aaa12449ad4 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Sun, 27 Apr 2025 17:27:44 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0omc=E5=92=8Csshsvc?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E9=85=8D=E7=BD=AE=EF=BC=8C=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?Wants=E4=BE=9D=E8=B5=96=E5=B9=B6=E8=B0=83=E6=95=B4RestartSec?= =?UTF-8?q?=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- linux/lib/systemd/system/omc.service | 3 ++- linux/lib/systemd/system/sshsvc.service | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/linux/lib/systemd/system/omc.service b/linux/lib/systemd/system/omc.service index 355cdcc..f2d5f6a 100644 --- a/linux/lib/systemd/system/omc.service +++ b/linux/lib/systemd/system/omc.service @@ -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 diff --git a/linux/lib/systemd/system/sshsvc.service b/linux/lib/systemd/system/sshsvc.service index 5c0e161..b6ebf24 100644 --- a/linux/lib/systemd/system/sshsvc.service +++ b/linux/lib/systemd/system/sshsvc.service @@ -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 \ No newline at end of file +WantedBy=multi-user.target