Merge pull request #377 from anntnzrb/kill-patch
Prefer pkill over killall
This commit is contained in:
commit
d02e951498
2
larbs.sh
2
larbs.sh
@ -242,7 +242,7 @@ grep -q "OTHER_OPTS='-a pulseaudio -m alsa_seq -r 48000'" /etc/conf.d/fluidsynth
|
|||||||
echo "OTHER_OPTS='-a pulseaudio -m alsa_seq -r 48000'" >> /etc/conf.d/fluidsynth
|
echo "OTHER_OPTS='-a pulseaudio -m alsa_seq -r 48000'" >> /etc/conf.d/fluidsynth
|
||||||
|
|
||||||
# Start/restart PulseAudio.
|
# Start/restart PulseAudio.
|
||||||
killall pulseaudio; sudo -u "$name" pulseaudio --start
|
pkill -15 -x 'pulseaudio'; sudo -u "$name" pulseaudio --start
|
||||||
|
|
||||||
# This line, overwriting the `newperms` command above will allow the user to run
|
# This line, overwriting the `newperms` command above will allow the user to run
|
||||||
# serveral important commands, `shutdown`, `reboot`, updating, etc. without a password.
|
# serveral important commands, `shutdown`, `reboot`, updating, etc. without a password.
|
||||||
|
Loading…
Reference in New Issue
Block a user