Prefer pkill over killall
This commit is contained in:
parent
b4167af0e7
commit
5308452390
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
|
||||
|
||||
# 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
|
||||
# serveral important commands, `shutdown`, `reboot`, updating, etc. without a password.
|
||||
|
Loading…
Reference in New Issue
Block a user