pasuspender
Re:Linux is not about choice (2008)
by cookiecaper on Wednesday May 08, 2013 @03:40PM
(#5676378)
That only works as long as the command it wraps is living. I could use that approach, but typically I don't just want pulseaudio dead while gedit or something is running, I want it dead until I decide that I want it back. It usually happens this way when I'm debugging an audio issue, so it'd be annoying to have PA constantly cycling that way.
paususpender while true
do
done
Typically when I want a quick-and-dirty "kill PulseAudio for real" solution I move /usr/bin/pulseaudio to /usr/bin/pulse-dead, issue pkill pulseaudio, and proceed until I want PA to come back to life, at which time I mv the binary back.