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
upstart service Centos 6.7
Re: upstart service Centos 6.7
Try to remove "env" from the two lines.
And you really should update to CentOS 6.9.
And you really should update to CentOS 6.9.
Re: upstart service Centos 6.7
I think that "env" should be "export".kanishk wrote: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
Re: upstart service Centos 6.7
And skipping ahead to the next problem that you haven't found yet, /var/www/html is the wrong place to log to. Selinux will complain bitterly and stop you. Log files should go under /var/log not /var/www.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke