From 8274c5cd1adccb96177868fb002a21ffa91f1317 Mon Sep 17 00:00:00 2001 From: Thomas Klaehn Date: Sun, 4 Apr 2021 08:50:25 +0200 Subject: [PATCH] Fix systemd service file --- greenhouse.service | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/greenhouse.service b/greenhouse.service index a2171f9..2d5251f 100644 --- a/greenhouse.service +++ b/greenhouse.service @@ -1,10 +1,11 @@ - [Unit] - Description=Greenhouse service - After=multi-user.target +[Unit] +Description=Greenhouse service +After=multi-user.target - [Service] - Type=idle - ExecStart=/usr/bin/python3 -m greenhouse +[Service] +Type=idle +ExecStart=gunicorn --bind 0.0.0.0:80 greenhouse:app + +[Install] +WantedBy=multi-user.target - [Install] - WantedBy=multi-user.target \ No newline at end of file