Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.

Commit 6ae3057

Browse files
committed
Restart logic fixed.
1 parent 1937eff commit 6ae3057

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

commands/restart

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
#!/usr/bin/env bash
22

3-
if [ -f "/var/run/php/php7.1-fpm.pid" ]; then
4-
sudo service php7.1-fpm stop
5-
fi
6-
7-
sudo service docker restart 2>&1 > /dev/null \
8-
&& source ${WPLIB_BOX_COMMANDS_DIR}/startup
3+
box shutdown
4+
box startup

commands/shutdown

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/usr/bin/env bash
22

3-
source "${WPLIB_BOX_COMMANDS_DIR}/readJSON"
4-
box container stop $database $webserver $processvm $kvstore $cache $sqladmin $webadmin
3+
# source "${WPLIB_BOX_COMMANDS_DIR}/readJSON"
4+
# box container stop $mail $proxy $database $webserver $processvm $kvstore $cache $sqladmin $webadmin
5+
box container shutdown
6+

commands/startup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env bash
22

33
source "${WPLIB_BOX_COMMANDS_DIR}/readJSON"
4-
box container start $database $webserver $processvm $kvstore $cache $sqladmin $webadmin
4+
box container start $mail $proxy $database $webserver $processvm $kvstore $cache $sqladmin $webadmin

0 commit comments

Comments
 (0)