Skip to content

Commit 602a6e6

Browse files
committed
improved restart function for ubuntu
1 parent 1a1d333 commit 602a6e6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/v-restart-web

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ rc=$?
5050

5151
# Workaround for Ubuntu 12.04
5252
if [ "$WEB_SYSTEM" == 'apache2' ]; then
53-
if [ ! -e "/var/run/apache2.pid" ]; then
53+
pid1='/var/run/apache2.pid'
54+
pid2='/var/run/apache2/apache2.pid'
55+
if [ ! -e "$pid1" ] && [ ! -e "$pid2" ]; then
5456
rc=1
5557
fi
5658
fi

0 commit comments

Comments
 (0)