Skip to content

Comments

Use exec when starting process via the shell.#1518

Merged
gilgongo merged 2 commits intojamulussoftware:masterfrom
softins:service-files
Apr 19, 2021
Merged

Use exec when starting process via the shell.#1518
gilgongo merged 2 commits intojamulussoftware:masterfrom
softins:service-files

Conversation

@softins
Copy link
Member

@softins softins commented Apr 14, 2021

This fixes the signal handling issue with systemctl reported in #1515,
but still allows shell substitution of environment variables.

Also changes use of fischvolk.de to jamulus.io in examples.

@softins softins requested review from gilgongo and hoffie April 14, 2021 20:06
@tormodvolden
Copy link
Contributor

These commit messages are much better than in the other pull request - thumbs up.

It is a question if we want to keep this option -o $(uname) though, the local hostname not being so relevant/helpful in many cases.

Copy link
Member

@hoffie hoffie left a comment

Choose a reason for hiding this comment

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

For my taste, the commit message could use some more explanation about the "why". A textual comment ("This fixes signal handling"), a reference to #1515 or even both would be good.

Technically, this will be possible to look up by taking the merge commit's reference to this PR and following the description there. Having the context and intention available directly in git makes it easier when using git log, git blame or git bisect.

softins added 2 commits April 14, 2021 22:23
This fixes the signal handling issue with systemctl reported in jamulussoftware#1515,
but still allows shell substitution of environment variables.
Uses anygenre3.jamulus.io as an example, because that server is less used.
@softins
Copy link
Member Author

softins commented Apr 14, 2021

Commit messages enhanced and force-pushed.

gilgongo added a commit to jamulussoftware/jamuluswebsite that referenced this pull request Apr 15, 2021
@helgeerbe
Copy link

You could use simply bash -c without exec. See: #1515 (comment)

@npostavs
Copy link
Contributor

sh probably works in more situations than bash though

@gilgongo gilgongo merged commit 6d662e3 into jamulussoftware:master Apr 19, 2021
@pljones pljones added this to the Release 3.8.0 milestone Feb 19, 2022
@softins softins deleted the service-files branch February 7, 2024 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Jamulus server 3.7.0 terminates when started as systemd service when sending SIGUSR2 to toggle recording

7 participants