diff --git a/internal/utils/service_linux.go b/internal/utils/service_linux.go index 86f6489..7d43ed6 100644 --- a/internal/utils/service_linux.go +++ b/internal/utils/service_linux.go @@ -123,9 +123,12 @@ func (this *ServiceManager) installSystemdService(systemd, exePath string, args [Unit] Description=` + longName + ` Service Before=shutdown.target +After=network-online.target [Service] Type=forking +Restart=always +RestartSec=1s ExecStart=` + exePath + ` start ExecStop=` + exePath + ` stop ExecReload=` + exePath + ` reload