From 602a6e60ce9df77ff0057c801c704d40ce3807a9 Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Mon, 30 Mar 2015 01:14:18 +0300 Subject: [PATCH] improved restart function for ubuntu --- bin/v-restart-web | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/v-restart-web b/bin/v-restart-web index 7962b302..78c1e7a5 100755 --- a/bin/v-restart-web +++ b/bin/v-restart-web @@ -50,7 +50,9 @@ rc=$? # Workaround for Ubuntu 12.04 if [ "$WEB_SYSTEM" == 'apache2' ]; then - if [ ! -e "/var/run/apache2.pid" ]; then + pid1='/var/run/apache2.pid' + pid2='/var/run/apache2/apache2.pid' + if [ ! -e "$pid1" ] && [ ! -e "$pid2" ]; then rc=1 fi fi