2016-10-13 17:21:55 -07:00
|
|
|
description "warcprox"
|
|
|
|
|
|
|
|
start on runlevel [2345]
|
|
|
|
stop on runlevel [!2345]
|
|
|
|
|
|
|
|
env PYTHONPATH={{venv_root}}/warcprox-ve34/lib/python3.4/site-packages
|
|
|
|
env PATH={{venv_root}}/warcprox-ve34/bin:/usr/bin:/bin
|
|
|
|
|
|
|
|
# by default warcprox creates some files/dirs relative to cwd
|
|
|
|
chdir {{work_dir}}
|
|
|
|
setuid {{user}}
|
|
|
|
|
|
|
|
console log
|
|
|
|
|
|
|
|
# --profile
|
|
|
|
exec nice warcprox \
|
2016-11-14 10:03:40 -08:00
|
|
|
--address=0.0.0.0 \
|
2016-10-13 17:21:55 -07:00
|
|
|
--dir={{warcs_dir}} \
|
|
|
|
--base32 \
|
|
|
|
--gzip \
|
|
|
|
--rollover-idle-time=180 \
|
|
|
|
--onion-tor-socks-proxy=localhost:9050 \
|
|
|
|
--rethinkdb-servers={{groups['rethinkdb']|join(',')}} \
|
|
|
|
--rethinkdb-db=brozzler \
|
|
|
|
--rethinkdb-big-table
|