Closed faisalraja closed 9 years ago
Basically run this command to control the app.
supervisord -c supervisord.conf
supervisorctl shutdown
supervisorctl restart all (or specific "restart syscontroller4")
you can reload config, restart supervisord etc use supervisorctl help for more commands
Cool. Does this run the process as the root level. I think the process needs the root level to get the pin readings. The pins on the BeagleBone are in the /dev folder and are virtual file descriptors owned by root only. I typically have to do something like
sudo python wsgi.py or sudo python wsgi.py & // to run in background
You'd have to run the supervisord -c supervisord.conf as root and everything it runs will be root unless specified in config.
cool. It would be nice to setup it up on boot. I'll look into it.
On Tue, Sep 1, 2015 at 2:12 PM, Faisal Raja notifications@github.com wrote:
You'd have to run the supervisord -c supervisord.conf as root and everything it runs will be root unless specified in config.
— Reply to this email directly or view it on GitHub https://github.com/dsmurl/DiySystemController4/pull/39#issuecomment-136831052 .
So you think this is ready to merge? I'll merge it now if it's complete and check into it's workings later.
If you run it successfully with that command it should be fine. You might have file path difference but I think the paths are common. You can check and run it on beaglebone.
I'm excited to have the supervisor rolling. This is one of the advanced features I wanted. I'm not familiar with this enough to know when to merge it. Maybe a briefing on it or something.