following the idea of having a kill \<pid\> that will send SIGTERM default signal to the task, this example of a "daemon leds" will handle SIGTERM in order to gracefully terminate itself. It allows to restart this daemon after correctly terminating it.