[fix] systemd config update & http service fix
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
30ee6e8c39
commit
0fb494f0fd
@ -6,13 +6,16 @@ After=network-online.target
|
||||
Requires=api-server.socket
|
||||
|
||||
[Service]
|
||||
ExecStart=/home/keedosn/go/src/git.pbiernat.dev/api-prototype/build/server
|
||||
ExecStart=/home/keedosn/go/src/git.pbiernat.dev/golang/rest-api-prototype/build/server
|
||||
ExecStop=/bin/kill $MAINPID
|
||||
WorkingDirectory=/home/keedosn/go/src/git.pbiernat.dev/api-prototype
|
||||
WorkingDirectory=/home/keedosn/go/src/git.pbiernat.dev/golang/rest-api-prototype
|
||||
User=keedosn
|
||||
Group=keedosn
|
||||
NonBlocking=true
|
||||
StandardOutput=append:/home/keedosn/go/src/git.pbiernat.dev/api-prototype/build/err.log
|
||||
StandardError=append:/home/keedosn/go/src/git.pbiernat.dev/api-prototype/build/err.log
|
||||
StandardOutput=append:/home/keedosn/go/src/git.pbiernat.dev/golang/rest-api-prototype/build/api-server.log
|
||||
StandardError=append:/home/keedosn/go/src/git.pbiernat.dev/golang/rest-api-prototype/build/api-server.log
|
||||
SyslogIdentifier=api-server
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
|
@ -41,7 +41,7 @@ func (s *Server) Start() {
|
||||
}
|
||||
|
||||
log.Println("Server listening on " + l.Addr().String())
|
||||
http.Serve(l, nil)
|
||||
s.Serve(l)
|
||||
} else {
|
||||
|
||||
log.Println("Server listening on " + s.Addr)
|
||||
|
Loading…
Reference in New Issue
Block a user