aboutsummaryrefslogtreecommitdiffhomepage
path: root/startserver.sh
diff options
context:
space:
mode:
Diffstat (limited to 'startserver.sh')
-rw-r--r--startserver.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/startserver.sh b/startserver.sh
index d4a1938..b657da1 100644
--- a/startserver.sh
+++ b/startserver.sh
@@ -1,3 +1,9 @@
#!/usr/bin/env bash
cd main/app/sprinkles/core/assets/SiteAssets/php/Chatserver/bin/
-nohup php WebChatServer.php &
+
+if [ "$1" = "persistent" ]
+ then
+ nohup php WebChatServer.php &
+else
+ php WebChatServer.php
+fi