Skip to content

Instantly share code, notes, and snippets.

@matagus

matagus/0-intro.md

Created Mar 1, 2016
Embed
What would you like to do?
Controling luigid (Luigi daemon) using supervisord.
  • create a user called luigid.
  • create /home/luigid/logs directory. luigid user must have write permissions.
  • copy luigi-daemon.conf to /etc/supervisor/conf/
  • sudo supervisorctl update
  • check that luigid is running (ps ax | grep luigid)
[program:luigi-daemon]
directory=/home/luigid/
command=/home/luigid/bin/python /home/luigid/bin/luigid --port 8080 --state-path /home/luigid/luigi.pickle --logdir /home/luigid/logs/
redirect_stderr=true
loglevel=INFO
process_name=luigi-daemon
numprocs=1
priority=1
autostart=true
startsecs=1
startretries=99999
autorestart=unexpected
exitcodes=0,2
stdout_logfile_maxbytes=25MB
stdout_logfile_backups=5
user=luigid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment