]> lifelog.hopto.org Git - LifeLog.git/commitdiff
Provided better start stop scripts.
authorMetabox <redacted>
Sat, 27 Apr 2019 18:16:32 +0000 (04:16 +1000)
committerMetabox <redacted>
Sat, 27 Apr 2019 18:16:32 +0000 (04:16 +1000)
startDevWebServer.sh
stopDevWebServer.sh [new file with mode: 0755]

index c267228d211ac7598ff1b7ecf6cac027eb173e79..d64d1541ceb8df75c2512e5625dfa59d5493203a 100755 (executable)
@@ -1,5 +1,10 @@
 #!/bin/bash                                                                                        
-export DB_USER="db"
-export DB_PASS="db_pass"
+
+DIR="/home/will/dev/LifeLog"
+
+if [ ! -d "$DIR/log" ]; then
+   mkdir "$DIR/log"
+fi
+cd $DIR
 cd /home/will/dev/LifeLog
 thttpd -C thttpd.conf& 
diff --git a/stopDevWebServer.sh b/stopDevWebServer.sh
new file mode 100755 (executable)
index 0000000..8058e22
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/bash                                                                                        
+kill -9 $(./htdocs/thttpd.pid)
+