Unit Files and Logging
Description
The purpose of this assignment is to set up systemd unit files
and logging for the previous assignment. Here is the criteria:
Write a
systemdunit file to automatically start Gunicorn and serve the Flask app when the system boots. Bind the Gunicorn process to a Unix domain socket with a umask of007. Note that this will require a change in the nginx configuration file.Ensure that the Gunicorn access logs and error logs are sent to the
systemdjournal.Ensure that the nginx access logs and error logs are sent to the
systemdjournal.
Note that you can test that the server is working with the curl program.
Turning in the Assignment
To submit your assignment, create a gzipped tar file named project6.tgz of a
DIRECTORY named project6 containing the following:
A file named
READMEthat contains a step-by-step description of the setup process. Make sure to include the file paths of any files you created or modified. Note any steps you took to verify that the above criteria are correct.A copy of any configuration files you created or modified.
Then submit that file to the appropriate folder on D2L.
Grading Criteria
- Correct implementation of the specification