aboutsummaryrefslogtreecommitdiffhomepage
path: root/startserver.sh
diff options
context:
space:
mode:
authormarvin-borner@live.com2018-05-12 12:40:51 +0200
committermarvin-borner@live.com2018-05-12 12:40:51 +0200
commit16014c5bbd25afbb445784c17646607c53cfe56b (patch)
tree70a2a753d81aa62084a61bf7f584228792608481 /startserver.sh
parent72ca4fbbdb9ff3a5514ddb1d1a3f6808990ac09d (diff)
Added server start options
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