/srv/irclogs.ubuntu.com/2013/06/18/#upstart.txt

=== Md is now known as Guest1090
=== Md_ is now known as Md
agendhi - I need help with controlling uwsgi which is installed with pip - how should the /etc/init/uwsgi.conf look like?  http://pastebin.com/vMK3Wyrb - i have this now13:06
xnoxagend: http://uwsgi-docs.readthedocs.org/en/latest/Upstart.html is fairly good and comprehensive guide.13:08
xnoxagend: looks ok.13:08
agendmy problem is that it doesn't want to restart13:09
agendsudo service uwsgi stop                stop: Unknown instance: 13:09
xnoxagend: see the doc I linked to, and use die on term option.13:10
agendbefore sudo service uwsgi start gave me that: uwsgi start/running, process 1627213:10
agendyeah I use die-on-term13:11
xnoxagend: and ideally use emperor option as well.13:11
agendnot sure i need emperor13:11
xnoxagend: check with ps, that the pid of uwsgi actually matches what status uwsgi gives you.13:12
agendand when i do: pgrep uwsgi  - i can't see any process with this nr13:13
agendit does not match13:14
xnoxin that case they way you are starting uwsgi it either forks or demonizes and expect is then wrong.13:15
agenduwsgi start/running, process 1653413:15
agendvagrant@one:~$ pgrep uwsgi13:15
agend1653613:15
agend1654113:15
agend1654213:15
agend1654313:15
agend1654413:15
xnoxstart with minimal sample, I'm not sure what all of your yaml options cause uwsgi to do.13:15
xnoxlooks like you want to add: expect daemon13:15
xnoxto the upstart job.13:15
xnoxit's best to simply run uwsgi in the foreground. and then logs will be collected in /var/log/upstart/uwsgi13:16
xnoxagend: also at this point you'd have to manually  kill that uwsgi.13:16
agendxnox: man - you are awsome - works now :)13:18
agendxnox: sorry - i meant to say awesome - i just checked that awsome might mean something opposite, so yeah u r great thanks a lot13:28
erkulesis there a way to make upstart do some checks if I do a status $service?19:00
xnoxerkules: why would you need that?21:56
xnoxerkules: generally no. status purely reports status of the pid from upstart's point of view. If it's still running & present than it's all good.21:56
xnoxerkules: maybe you should use monitoring e.g. nagios or check_mk ?21:56

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!