No need for a PIDfile.. just have the script that launches it also terminate it.

For example, here (attached) is my bash script I use to record CBC radio, or any other stream.

Eg. save_stream.sh -seconds 20 cbc1

Cheers


Attachments
258219-save_stream.sh (240 downloads)