allebb / pirrot

A radio repeater controller (supporting both simplex and duplex operation modes) for the RaspberryPi.
https://pirrot.hallinet.com
54 stars 12 forks source link

Add pcntl_signal to ensure that code gets ran afterwards.. #11

Closed allebb closed 4 years ago

allebb commented 7 years ago

Make sure that SIGINT and SIGTERM are handled correctly by the pirrot daemon, this will ensure that the LED's are turned off after the system service is stopped and/or CTRL+C is pressed on the keyboard if Pirrot is running in the terminal.

This should also clean up and kill other spawned/managed services that Pirrot manages/spawns such as the audio playback and sound recording.

allebb commented 4 years ago

This has now been implemented and tested (currently in our 'dev-1.0.5' branch), this will be released in the next release of Pirrot.