[fix] systemd config update & http service fix
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Piotr Biernat 2022-04-25 00:12:49 +02:00
parent 30ee6e8c39
commit 0fb494f0fd
2 changed files with 8 additions and 5 deletions

View File

@ -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

View File

@ -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)