https://mamchenkov.net/wordpress/2018/03/26/systemdaemon-simple-base-for-system-daemons-in-php/
SystemDaemon - Simple base for system daemons in PHP