remove useless file

master
codeskyblue 8 years ago
parent 7ae91ce439
commit 1168486740

@ -68,7 +68,7 @@ Open web <http://localhost:11313> to see the manager page.
![gosuv web](docs/gosuv.gif)
## Configuration
Default config file stored in directory `$HOME/.gosuv/`
Default config file stored in directory `$HOME/.gosuv/`, Set env-var `GOSUV_HOME_DIR` can change config file store directory.
- file `programs.yml` contains all program settings.
- file `config.yml` contains server config

@ -103,22 +103,22 @@ func (w *WriteBroadcaster) CloseWriters() error {
return nil
}
// nop writer
type NopWriter struct{}
// // nop writer
// type NopWriter struct{}
func (*NopWriter) Write(buf []byte) (int, error) {
return len(buf), nil
}
// func (*NopWriter) Write(buf []byte) (int, error) {
// return len(buf), nil
// }
type nopWriteCloser struct {
io.Writer
}
// type nopWriteCloser struct {
// io.Writer
// }
func (w *nopWriteCloser) Close() error { return nil }
// func (w *nopWriteCloser) Close() error { return nil }
func NopWriteCloser(w io.Writer) io.WriteCloser {
return &nopWriteCloser{w}
}
// func NopWriteCloser(w io.Writer) io.WriteCloser {
// return &nopWriteCloser{w}
// }
// chan string writer
type chanStrWriter struct {

@ -271,9 +271,9 @@ func NewProcess(pg Program) *Process {
stopC: make(chan syscall.Signal),
retryLeft: pg.StartRetries,
Status: string(Stopped),
Output: NewQuickLossBroadcastWriter(outputBufferSize), // NewBufferBroadcast(outputBufferSize),
Stdout: NewQuickLossBroadcastWriter(outputBufferSize), // NewBufferBroadcast(outputBufferSize),
Stderr: NewQuickLossBroadcastWriter(outputBufferSize), // NewBufferBroadcast(outputBufferSize),
Output: NewQuickLossBroadcastWriter(outputBufferSize),
Stdout: NewQuickLossBroadcastWriter(outputBufferSize),
Stderr: NewQuickLossBroadcastWriter(outputBufferSize),
}
pr.StateChange = func(_, newStatus FSMState) {
pr.Status = string(newStatus)

Loading…
Cancel
Save