Skip to content

Instantly share code, notes, and snippets.

@matagus
Created March 1, 2016 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matagus/ad1983a9dd9fddb15142 to your computer and use it in GitHub Desktop.
Save matagus/ad1983a9dd9fddb15142 to your computer and use it in GitHub Desktop.
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