From adc95a5dbee1598f9026ef4bc6392d8afa32ef31 Mon Sep 17 00:00:00 2001 From: Masahito Yoshida Date: Fri, 24 Apr 2015 18:46:14 +0900 Subject: [PATCH] add a proper sleep. --- upstart/stud.conf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/upstart/stud.conf b/upstart/stud.conf index 4f26ec4..d38e14f 100644 --- a/upstart/stud.conf +++ b/upstart/stud.conf @@ -7,4 +7,10 @@ start on runlevel [23] respawn respawn limit unlimited -exec stud --config /etc/stud/stud.cfg +script + # If this job is failed, upstart supervisor will run again soon. It's too fast. + # Therefore a proper sleep is needed. + sleep ${SLEEP_SEC:-1} + + exec stud --config /etc/stud/stud.cfg +end script