From 599fba75267e69d80a16c627ee84a58f5a9db1ad Mon Sep 17 00:00:00 2001 From: qxo Date: Tue, 21 Jan 2014 16:50:39 +0800 Subject: [PATCH] if supervisord not found verify its location --- ubuntu | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ubuntu b/ubuntu index b8b0627..1874167 100644 --- a/ubuntu +++ b/ubuntu @@ -31,7 +31,12 @@ DAEMON=/usr/bin/supervisord NAME=supervisord DESC=supervisor -test -x $DAEMON || exit 0 +if [ ! -f $DAEMON ];then + echo "$DAEMON not exits,do nothing :( please verify $NAME location( using 'which $NAME'). "; + which $NAME; + exit 0; +fi + LOGDIR=/var/log/supervisor PIDFILE=/var/run/$NAME.pid