package/nginx/S50nginx: Do not assume start-stop-daemon knows -R.
authorThomas Claveirole <thomas.claveirole@green-communications.fr>
Mon, 9 Oct 2017 09:50:49 +0000 (11:50 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 10 Oct 2017 15:51:02 +0000 (17:51 +0200)
commit99b8044a6714e925c504c0e3fc46f3730e0fe572
tree4228b38638daa63d332f7053d2fdd37b8ffe6781
parenta46bb7d9af2ff924989db11409e9f03791d9f2c5
package/nginx/S50nginx: Do not assume start-stop-daemon knows -R.

start-stop-daemon fails on -R when not compiled with
CONFIG_FEATURE_START_STOP_DAEMON_FANCY.  Thus, do not rely on -R
during stop to avoid a race condition during restart.

Use a sleep 1 during restart instead, as suggested by Peter Korsgaard
in <87bmluk4bm.fsf@dell.be.48ers.dk>.

Signed-off-by: Thomas Claveirole <thomas.claveirole@green-communications.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/nginx/S50nginx