mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-08-04 04:24:27 -04:00
porting ansible config to xenial
no more upstart, switch to daemontools, among other things
This commit is contained in:
parent
19522aff85
commit
18b4a26db6
26 changed files with 289 additions and 182 deletions
10
ansible/roles/pywb/templates/pywb-run.j2
Normal file
10
ansible/roles/pywb/templates/pywb-run.j2
Normal 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
|
||||
|
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue