Last active
March 3, 2019 21:08
Setup ArchiveTeam Warrior supervisor config (Ubuntu EC2)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
USERDATA=$(ec2metadata --user-data) | |
NICKNAME="hackernews" | |
if [ "$USERDATA" != "unavailable" ] ; then | |
NICKNAME=$USERDATA | |
fi | |
# Setup Supervisor | |
echo "[program:warrior] | |
command=run-pipeline --concurrent 2 /home/ubuntu/yahoomessages-grab/pipeline.py $NICKNAME | |
numprocs=1" \ | |
> /etc/supervisor/conf.d/warrior.conf | |
/etc/init.d/supervisor stop | |
sleep 1 | |
/etc/init.d/supervisor start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment