From b43e651f96fe60c9c4d0cc0f40521bb828e380e6 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Sat, 9 Mar 2019 20:53:57 +0100 Subject: [PATCH] Add systemd config --- README.md | 7 +++++++ dist/grzegorz_webui.service | 11 +++++++++++ 2 files changed, 18 insertions(+) create mode 100644 dist/grzegorz_webui.service diff --git a/README.md b/README.md index a146c3b..981d871 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,13 @@ When finished, run the server with: python3 main.py +## Making the webui run on boot + +Copy the files in the folder dist into $HOME/.config/systemd/user and run the following commands as the user intended to run the server: + + $ systemd --user enable grzegorz_webui.service + $ systemd --user start grzegorz_webui.service + ## Developing on this diff --git a/dist/grzegorz_webui.service b/dist/grzegorz_webui.service new file mode 100644 index 0000000..e79c74d --- /dev/null +++ b/dist/grzegorz_webui.service @@ -0,0 +1,11 @@ +[Unit] +Description=Grzegorz webUI + +#Requires=grzegorz@.service + +[Service] +WorkingDirectory=/home/grzegorz/grzegorz_clients +ExecStart=/usr/bin/python main.py + +[Install] +WantedBy=default.target