Is there any way to nodejs listening for some way of signal that is generated by a bash script on some event random in time?
How can I generate that signal in bash script and listening on nodejs?
Any help is welcome Regards
A node.js process can listen for any POSIX signal. Personally, I use the SIGUSR1 event. Use SIGUSR2
.
See http://nodejs.org/docs/latest/api/process.html#signal_Events for more info.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With