mirror of
https://github.com/EnumeratedDev/enit.git
synced 2026-09-16 02:26:11 +00:00
Keep simple services running if exit method is "stop_command"
This commit is contained in:
@@ -215,7 +215,11 @@ func (service *EnitService) StartService() error {
|
||||
default:
|
||||
if service.Type == "simple" && err == nil {
|
||||
service.restartCount = 0
|
||||
if service.ExitMethod != "stop_command" {
|
||||
_ = service.setCurrentState(EnitServiceCompleted)
|
||||
} else {
|
||||
_ = service.setCurrentState(EnitServiceRunning)
|
||||
}
|
||||
return
|
||||
}
|
||||
if !service.CrashOnSafeExit {
|
||||
|
||||
Reference in New Issue
Block a user