How to make uwsgi -emperor run as a daemon

I am using yaml. There is a line in the line:daemonize : /var/www/apps/myapp.log

If uwsgi -y vassals/myappconfig.yaml, the website is running in the background. I can do other things in the terminal, even log out. This is the effect that I expect.

If uwsgi --emperor vassals, the website may work, but it is stuck in the terminal. I have to use ctrl + cto finish it, to return to the terminal. Then the site does not work. This is not what I expect.

I do not want to use things like nohup. If uwsgi --emperorthis is not the right solution, I would prefer to load websites one by one, everyone starts the daemon.

+5
source share
1 answer

you can pass on to the --daemonize <logfile>emperor too

+12

All Articles