some changes
parent
4f4e58341f
commit
48762d3269
|
@ -1 +1,2 @@
|
|||
config.json
|
||||
config.json
|
||||
restart.sh
|
6
main.go
6
main.go
|
@ -9,12 +9,6 @@ import (
|
|||
"net/http"
|
||||
)
|
||||
|
||||
/*
|
||||
sudo systemctl stop server.service
|
||||
go build main.go
|
||||
sudo systemctl start server.service
|
||||
*/
|
||||
|
||||
func init() {
|
||||
log.SetPrefix("hikan.ru | ")
|
||||
}
|
||||
|
|
|
@ -25,5 +25,5 @@ func GetJournalctlLogs(serviceName, grepPattern string, hoursAgo int) ([]byte, e
|
|||
return nil, err
|
||||
}
|
||||
|
||||
return output.Bytes(), nil
|
||||
return bytes.TrimSpace(output.Bytes()), nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue