From c44e40d72d14eb42d15b40d2c2d11ec4400a118c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Wed, 28 Sep 2022 08:16:49 +0800 Subject: [PATCH] =?UTF-8?q?systemd=E6=9C=8D=E5=8A=A1=E5=A2=9E=E5=8A=A0BEGI?= =?UTF-8?q?N=20INIT=20INFO?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/utils/service_linux.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/utils/service_linux.go b/internal/utils/service_linux.go index 339a6ecd..a90950d3 100644 --- a/internal/utils/service_linux.go +++ b/internal/utils/service_linux.go @@ -111,7 +111,8 @@ func (this *ServiceManager) installSystemdService(systemd, exePath string, args shortName := teaconst.SystemdServiceName longName := "GoEdge API" // TODO 将来可以修改 - desc := `# Provides: ` + shortName + ` + desc := `### BEGIN INIT INFO +# Provides: ` + shortName + ` # Required-Start: $all # Required-Stop: # Default-Start: 2 3 4 5