summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--cfg.sample.py1
-rwxr-xr-xplinth.py3
-rwxr-xr-xstart.sh2
4 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index eb1fad1..6c2f8ac 100644
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,7 @@ build:
mkdir -p $(BUILD_DIR)
predepend:
- sudo sh -c "apt-get install augeas-tools python-bjsonrpc python-augeas python-simplejson pandoc"
+ sudo sh -c "apt-get install augeas-tools python-bjsonrpc python-augeas python-simplejson pandoc python-cheetah"
touch predepend
$(BUILD_DIR)/exmachina: build
diff --git a/cfg.sample.py b/cfg.sample.py
index 1602724..8521ca6 100644
--- a/cfg.sample.py
+++ b/cfg.sample.py
@@ -8,6 +8,7 @@ user_db = os.path.join(data_dir, "users")
status_log_file = os.path.join(data_dir, "status.log")
access_log_file = os.path.join(data_dir, "access.log")
users_dir = os.path.join(data_dir, "users")
+pidfile = os.path.join(data_dir, "pidfile.pid")
product_name = "Plinth"
box_name = "FreedomBox"
diff --git a/plinth.py b/plinth.py
index eb39a42..3b8a100 100755
--- a/plinth.py
+++ b/plinth.py
@@ -80,7 +80,8 @@ def parse_arguments():
if args.pidfile:
cfg.pidfile = args.pidfile
else:
- cfg.pidfile = "plinth.pid"
+ if not cfg.pidfile:
+ cfg.pidfile = "plinth.pid"
if args.listen_exmachina_key:
# this is where we optionally try to read in a shared secret key to
# authenticate connections to exmachina
diff --git a/start.sh b/start.sh
index da7a4d3..1a16d1a 100755
--- a/start.sh
+++ b/start.sh
@@ -7,5 +7,5 @@ export PYTHONPATH
sudo killall exmachina.py
sudo build/exmachina/exmachina.py -v &
-sudo python plinth.py
+python plinth.py
sudo killall exmachina.py