From 4a5d4eb9208e74fce5f138a2f9901aff2556626c Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Mon, 1 May 2017 16:26:17 +0200 Subject: [PATCH] Add systemd service --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index c3905ce..446ab0e 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,21 @@ Navigate browser to http://127.0.0.1:5002/ You should configure your BergCloud Bridge to point to your Sirius instance. +If you want, you can create a systemd service, feel free to update this skeleton to fit your needs: + +``` +[Unit] +Description=Sirius, webapp for Little Printer + +[Service] +WorkingDirectory=/home/berg/sirius +ExecStart=/home/berg/.local/bin/gunicorn -k flask_sockets.worker manage:app -b 0.0.0.0:5002 -w 1 +User=berg + +[Install] +WantedBy=multi-user.target +``` + ### Using the external API If you want to print messages from your application, you can use the external API. -- 2.47.3