From: wbudic Date: Thu, 7 Mar 2019 21:46:52 +0000 (+1100) Subject: Service enabled and instructions updated. X-Git-Url: https://lifelog.hopto.org/gitweb/?a=commitdiff_plain;h=1a986001d448639ffe1d910f97814126572f24db;p=LifeLog.git Service enabled and instructions updated. --- diff --git a/Installation.txt b/Installation.txt index 868079c..fbfc10f 100644 --- a/Installation.txt +++ b/Installation.txt @@ -89,3 +89,22 @@ Note exporting/importing of other tables is similar, but not recommended. #Current Latest Development Branch git fetch && git checkout dev.1.3 + + +#Install thttpd_dev as an Linux System Service +Not recommended, but the thttpd development environment for LifeLog +can be installed to start on reboot. + +sudo cp startDevWebServer.sh /etc/init.d/ + +Modify the following to the path of your development environment +where thttpd.conf file is in /etc/init.d/startDevWebServer.sh + +Modify line -> cd /home/will/thttpd_dev +vim /etc/init.d/startDevWebServer.sh + +Install as service with: +sudo update-rc.d startDevWebServer.sh defaults + + + diff --git a/startDevWebServer.sh b/startDevWebServer.sh index 411b1db..7a20870 100755 --- a/startDevWebServer.sh +++ b/startDevWebServer.sh @@ -1,4 +1,5 @@ - +#!/bin/bash export DB_USER="db" export DB_PASS="db_pass" +cd /home/will/thttpd_dev thttpd -C thttpd.conf&