Skip to content

Commit

Permalink
Merge pull request #7 from VitaliiHurin/master
Browse files Browse the repository at this point in the history
Add custom args support for default restart script
  • Loading branch information
bom-d-van authored Nov 18, 2016
2 parents c351771 + dd7d6ce commit b48f6f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ func (s *Server) restartScript(typ, who, checksum string) (script string) {
`echo "[harp] {\"datetime\": \"$(date)\", \"user\": \"$harp_composer\", \"type\": \"%s\"%s}" | tee -a %s %s >/dev/null`+"\n",
typ, checksum, log, s.HistoryLogPath(),
)
script += fmt.Sprintf("%s nohup %s/bin/%s %s >> %s 2>&1 &\n", envs, s.GoPath, app.Name, args, log)
script += fmt.Sprintf("%s nohup %s/bin/%s %s $@ >> %s 2>&1 &\n", envs, s.GoPath, app.Name, args, log)
script += fmt.Sprintf("echo $! > %s\n", pid)
script += "cd " + s.Home
return
Expand Down

0 comments on commit b48f6f9

Please sign in to comment.