My group and I are running a server that is based upon Django and uses 
mod_wsgi to run an Apache server. We will not be working on this project 
after it is over, so I am attempting to set up cronjob similar 
functionality to check if the apache server has shut down(system restart or 
power failure), and if it has, will restart the server for me. I've found 
documentation on how to check if an apache server is down and restart the 
server if it is, but our server uses https and thus our start command is 
pretty verbose.

The command we use to initially start the server is

python manage.py runmodwsgi --host 0.0.0.0 --port 8001 --https-port 8000 
--ssl-certificate (certificate Location) --server-name (Domain Name)
I asked this question on stack overflow and got some good feedback that I 
should use the --setup-only command and a system service manager to set up 
a configuration to restart my server if this happens.  I am pretty new to 
Linux and I'm not really sure what the system service manager is and how I 
would prepare one for my server in particular. 

The stack overflow post also mentioned I should use the --server-root 
command to setup a persistent location for the generated configuration. 
Should I use this command in the same command that i am using --setup-only 
or is the --server-root command something I do after the configuration is 
generated?

I'm pretty new to Linux and using both Mod-wsgi as well as Apache so any 
help is greatly appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to