From a027de3450c1d1ad068444087c3ef02d92826e84 Mon Sep 17 00:00:00 2001 From: Alessandro Lai Date: Mon, 8 Apr 2019 10:06:10 +0200 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6a17b2b..017ddda 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ With this small Shell+PHP combination, you can have a simple loop that: - sleeps for a custom amount of time - shuts down and restarts back again -The shell script intercepts SIGTERM/SIGKILL signals so, when they are received, the PHP script is stopped ASAP but gracefully, since the execution of the body of the command is never truncated. +The shell script intercepts SIGTERM/SIGINT signals so, when they are received, the PHP script is stopped ASAP but gracefully, since the execution of the body of the command is never truncated. This means that you can easily obtain *a daemon PHP script without running in memory issues*; if you run this *in a Kubernetes environment this will be very powerful*, since the orchestrator will take care of running the script, and at the same time it will apply the [proper restart policies](https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy) in case of crashes. Last but not least, the signal handling will play nice with shutdown requests, like during the roll out of a new deployment.