porting ansible config to xenial

no more upstart, switch to daemontools, among other things
This commit is contained in:
Noah Levitt 2019-03-22 23:50:46 -07:00
parent 19522aff85
commit 18b4a26db6
26 changed files with 289 additions and 182 deletions

View file

@ -0,0 +1,10 @@
#!/bin/bash
logfile=/var/log/pywb.log
touch $logfile
chown {{user}} $logfile
exec nice setuidgid {{user}} env PYWB_CONFIG_FILE=/etc/pywb.yml \
{{venv_root}}/pywb-ve3/bin/python {{venv_root}}/pywb-ve3/bin/brozzler-wayback \
>> $logfile 2>&1

View file

@ -1,12 +0,0 @@
description "pywb"
start on runlevel [2345]
stop on runlevel [!2345]
env PYWB_CONFIG_FILE=/etc/pywb.yml
setuid {{user}}
console log
exec nice {{venv_root}}/pywb-ve3/bin/python {{venv_root}}/pywb-ve3/bin/brozzler-wayback