Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 350 Bytes

README.md

File metadata and controls

10 lines (7 loc) · 350 Bytes

daemonizer

Run any command in a loop as if it were a daemon, correctly forwarding SIGTERM to it

This script executes given command in a loop and forwards SIGTERM to it.

It can be used to run php scripts in 'daemonized' way and control execution via tools like supervisord.

Usage: daemonizer <sleep> <command>