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