Skip to content

Commit 0dc24fb

Browse files
committed
systemd服务增加BEGIN INIT INFO
1 parent b965ac6 commit 0dc24fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/utils/service_linux.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ func (this *ServiceManager) installSystemdService(systemd, exePath string, args
111111
shortName := teaconst.SystemdServiceName
112112
longName := "GoEdge Admin" // TODO 将来可以修改
113113

114-
desc := `# Provides: ` + shortName + `
114+
desc := `### BEGIN INIT INFO
115+
# Provides: ` + shortName + `
115116
# Required-Start: $all
116117
# Required-Stop:
117118
# Default-Start: 2 3 4 5

0 commit comments

Comments
 (0)