I'm try to create a daemon application by following the example :
In the example, there is no operations about the daemon stop.
Therefore, I'm curious about :
- How to send
stopsignal to the daemon ? Or justkill PIDdirectly ? - If the daemon only can stop on killed, should the daemon itself do the cleaning up operations on killed ? Just like close file descriptors, saving parameters, etc.
Thanks in advance.
SIGTERMsignal (which can be send bykillindeed). This information might be of use too : freedesktop.org/software/systemd/man/…