From 68752b86115d5310ef8f9d3aabaef408450f222b Mon Sep 17 00:00:00 2001 From: Johannes Schriewer Date: Wed, 23 Dec 2020 02:05:49 +0100 Subject: [PATCH] Add systemd service file --- inventory.service | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 inventory.service diff --git a/inventory.service b/inventory.service new file mode 100644 index 0000000..d5cd826 --- /dev/null +++ b/inventory.service @@ -0,0 +1,12 @@ +[Unit] +Description = "Small parts inventory management system" + +[Service] +Type = simple +ExecStart = gunicorn inventory_project.wsgi -b 127.0.0.1:8130 -w 4 -t 15 -p /run/inventory.pid --log-level warning -n inventory +ExecReload = kill -HUP $MAINPID +PIDFile = /run/inventory.pid +Restart = always + +[Install] +WantedBy = multi-user.target \ No newline at end of file