From d506798a13768398108da4d825b5c18163a7b0b3 Mon Sep 17 00:00:00 2001 From: Trent Palmer Date: Fri, 8 Jan 2021 14:32:50 -0800 Subject: [PATCH] add example systemd service --- photo_app.service.example | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 photo_app.service.example diff --git a/photo_app.service.example b/photo_app.service.example new file mode 100644 index 0000000..0c45b9e --- /dev/null +++ b/photo_app.service.example @@ -0,0 +1,15 @@ +[Unit] +Description=Photo Application +After=network.target + +[Service] +User= +Group= +WorkingDirectory=/var/lib/ +Environment=FLASK_DEBUG=0 +# apt-get install python3-gunicorn gunicorn +ExecStart=/usr/bin/gunicorn3 --access-logfile '-' -b 127.0.0.1:8200 -w 1 :app +Restart=always + +[Install] +WantedBy=multi-user.target