Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Commit

Permalink
remove pid for always resource busy
Browse files Browse the repository at this point in the history
  • Loading branch information
codeskyblue committed Aug 13, 2018
1 parent 6db8e99 commit d21bd01
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -1318,8 +1318,7 @@ func (s *Server) Serve(lis net.Listener) error {
}

func runDaemon() (cntxt *daemon.Context) {
cntxt = &daemon.Context{
PidFileName: "/sdcard/atx-agent.pid",
cntxt = &daemon.Context{ // remove pid to prevent resource busy
PidFilePerm: 0644,
LogFileName: "/sdcard/atx-agent.log",
LogFilePerm: 0640,
Expand Down

0 comments on commit d21bd01

Please sign in to comment.