upstart service Centos 6.7
Posted: 2018/05/12 07:34:20
description "uWSGI_pricing_service"
start on runlevel [2345]
stop on runlevel [06]
respawn
env UWSGI_ALIVE=/var/www/html/pricing-service/venv/bin/uwsgi
env LOGTO_ALIVE=/var/www/html/pricing-service/log/emperor.log
exec $UWSGI_ALIVE --master --emperor /var/www/html/pricing-service/
uwsgi.ini --die-on-term --uid jose --gid jose --logto $LOGTO_ALIVE
I am having a problem in above line of code if I start the service with these lines it gives an error unknown job but if I remove these following lines
env UWSGI_ALIVE=/var/www/html/pricing-service/venv/bin/uwsgi
env LOGTO_ALIVE=/var/www/html/pricing-service/log/emperor.log
it actually starts the file but then my web app did not run, I am new server developer please help me
start on runlevel [2345]
stop on runlevel [06]
respawn
env UWSGI_ALIVE=/var/www/html/pricing-service/venv/bin/uwsgi
env LOGTO_ALIVE=/var/www/html/pricing-service/log/emperor.log
exec $UWSGI_ALIVE --master --emperor /var/www/html/pricing-service/
uwsgi.ini --die-on-term --uid jose --gid jose --logto $LOGTO_ALIVE
I am having a problem in above line of code if I start the service with these lines it gives an error unknown job but if I remove these following lines
env UWSGI_ALIVE=/var/www/html/pricing-service/venv/bin/uwsgi
env LOGTO_ALIVE=/var/www/html/pricing-service/log/emperor.log
it actually starts the file but then my web app did not run, I am new server developer please help me