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
systemd
unit 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
systemd
journal.Ensure that the nginx access logs and error logs are sent to the
systemd
journal.
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 project5.tgz
of a
DIRECTORY named project5
containing the following:
A file named
README
that 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