Skip to content

Commit

Permalink
Use exec when starting process via the shell.
Browse files Browse the repository at this point in the history
This fixes the signal handling issue with systemctl reported in jamulussoftware#1515,
but still allows shell substitution of environment variables.
  • Loading branch information
softins committed Apr 14, 2021
1 parent 3df60d6 commit 94e31bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion distributions/debian/jamulus-headless.service
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ IOSchedulingPriority=0

#### Change this to publish this server, set genre, location and other parameters.
#### See https://jamulus.io/wiki/Command-Line-Options ####
ExecStart=/bin/sh -c '/usr/bin/jamulus-headless -s -n'
ExecStart=/bin/sh -c 'exec /usr/bin/jamulus-headless -s -n'


Restart=on-failure
Expand Down
2 changes: 1 addition & 1 deletion distributions/jamulus-server.service
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Type=simple
Restart=always
RestartSec=1
User=jamulus
ExecStart=/bin/sh -c '/usr/bin/jamulus -s -n -l /var/log/jamulus -e jamulus.fischvolk.de -g -o "$(uname -n);;"'
ExecStart=/bin/sh -c 'exec /usr/bin/jamulus -s -n -l /var/log/jamulus -e jamulus.fischvolk.de -g -o "$(uname -n);;"'

[Install]
WantedBy=multi-user.target

0 comments on commit 94e31bb

Please sign in to comment.