Skip to content

Use exec in script that starts the agent#389

Merged
olivielpeau merged 1 commit intomasterfrom
olivielpeau/shell-exec
Jul 18, 2017
Merged

Use exec in script that starts the agent#389
olivielpeau merged 1 commit intomasterfrom
olivielpeau/shell-exec

Conversation

@olivielpeau
Copy link
Copy Markdown
Member

What does this PR do?

Uses exec in script that starts the agent.

Resolves #363

Motivation

Using exec makes the agent process replace the shell script's
process instead of starting the agent process as a child process
of the shell script's process.

This is desirable for init systems that can't really track the actual
agent process' PID otherwise (like upstart, see #363),and can then
fail to track the agent process properly.

Using `exec` makes the agent process replace the shell script's
process instead of starting the agent process as a child process.

This is desirable for init systems that can't really track the actual
agent process' PID otherwise, and can then fail to track the agent
process properly.
Copy link
Copy Markdown
Contributor

@gmmeyer gmmeyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a nice clean solution. Looks good to me!

@olivielpeau olivielpeau merged commit 5b0563e into master Jul 18, 2017
@olivielpeau olivielpeau deleted the olivielpeau/shell-exec branch July 18, 2017 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants