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