]> git.aero2k.de Git - sirius.git/commitdiff
Add systemd service
authorQuentin Dufour <quentin@dufour.tk>
Mon, 1 May 2017 14:26:17 +0000 (16:26 +0200)
committerQuentin Dufour <quentin@dufour.tk>
Mon, 1 May 2017 14:26:17 +0000 (16:26 +0200)
README.md

index c3905ce65eedf82fbbfe240ddf84b6e4f6ab59bc..446ab0ea3e08a893ccbaf23f8ec64271afb861de 100644 (file)
--- 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.