~craftyguy/superd

1ad90642c30aeb352407bd2792364513a90e7c9e — Clayton Craft 1 year, 9 months ago a8136c3 service_log_files
service: ignore stdout/stderr streams from command

No longer being used since stdout/stderr are being sent directly to an
os.File
1 files changed, 0 insertions(+), 16 deletions(-)

M internal/service/service.go
M internal/service/service.go => internal/service/service.go +0 -16
@@ 374,8 374,6 @@ func (s *Service) Run(quit <-chan struct{}) {
			cmdChan = nil
			streams := command.Streams()
			cmdStatus = streams.Status
			cmdStdout = streams.Stdout
			cmdStderr = streams.Stderr
			details.Status = api.ServiceStarted
			details.Pid = command.Status().PID
			s.getCmdStatus = command.Status


@@ 530,20 528,6 @@ func (s *Service) Run(quit <-chan struct{}) {
				}
			}()

		// Log output from command
		case line, open := <-cmdStderr:
			if !open {
				cmdStderr = nil
			} else {
				s.logger.Println(s.Name(), line)
			}
		case line, open := <-cmdStdout:
			if !open {
				cmdStdout = nil
			} else {
				s.logger.Println(s.Name(), line)
			}

		// config should be reloaded
		case <-s.reload:
			// update details. note that this is only updating fields that