Extra predepend's, plinth doesn't need to run as root, pidfile location set in cfg file.

This commit is contained in:
Tom Galloway 2013-01-04 12:50:51 +00:00
parent 95118b3b96
commit b45d5cfe85
4 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -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