gitee.com/sy_183/go-common@v1.0.5-0.20231205030221-958cfe129b47/system/service.v2/options_linux.go (about)

     1  package svc
     2  
     3  func WithNotify(notify bool) Option {
     4  	return optionFunc(func(service Service) {
     5  		if systemdService, is := service.(*linuxSystemdService); is {
     6  			systemdService.systemdNotify = notify
     7  		}
     8  	})
     9  }