From: Metabox Date: Sat, 27 Apr 2019 18:16:32 +0000 (+1000) Subject: Provided better start stop scripts. X-Git-Url: https://lifelog.hopto.org/gitweb/?a=commitdiff_plain;h=4427610b06daf928aca64c334809869101921f2f;p=LifeLog.git Provided better start stop scripts. --- diff --git a/startDevWebServer.sh b/startDevWebServer.sh index c267228..d64d154 100755 --- a/startDevWebServer.sh +++ b/startDevWebServer.sh @@ -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 index 0000000..8058e22 --- /dev/null +++ b/stopDevWebServer.sh @@ -0,0 +1,3 @@ +#!/bin/bash +kill -9 $(./htdocs/thttpd.pid) +