seregazhuk / php-watcher

Monitor for any changes in your php application and automatically restart it (suitable for async apps).
https://sergeyzhuk.me/2019/10/18/php-watcher/
389 stars 31 forks source link

Add ability to provide custom signal to a running application #25

Closed seregazhuk closed 5 years ago

seregazhuk commented 5 years ago

Currently, when the watcher restarts the script it always sends SIGTERM. We need to customize it and allow it to send any signal. Make it customizable via config signal:

watch:
  - src
  - config
signal: SIGINT

or in a command line:

php-watcher server.php --signal SIGINT