Assuming you're on linux: you want to spawn a new process group while background your command. Check the setsid command in bash. This will contain some useful examples: https://stackoverflow.com/questions/19233529/run-bash-script-as-daemon
- Ketan On Fri, Jun 16, 2023 at 10:48 PM Tsanko Stoev <tst...@gmail.com> wrote: > Hello All, > > I wanted to see if there is a way to solve an issue we are having today. > We have a deployment that runs several commands. At the end of the > deployment we run a command that starts a service. We noticed that the > command is launched as a subprocess of the agent connection, which results > in that subprocess being killed once the agent is done deploying. Is there > a way to run a job command that persists after the deployment is done. > I hope my explanation made sense. > Thanks. > > Sincerely, > Tsanko Stoev > > > -- > You received this message because you are subscribed to the Google Groups > "go-cd" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to go-cd+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/go-cd/CAGWsXCDU57CNqbkiJ8vimsdaxRPXssFHbf6jjPEC_55j7_LnJA%40mail.gmail.com > <https://groups.google.com/d/msgid/go-cd/CAGWsXCDU57CNqbkiJ8vimsdaxRPXssFHbf6jjPEC_55j7_LnJA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "go-cd" group. To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/CAMUPJd5R5%2B7%3DL6TY%2BK-PM3RyJbyNDaAYht1WYZn6iZeWsqB2JA%40mail.gmail.com.