Add systemd config

This commit is contained in:
Peder Bergebakken Sundt 2019-03-09 20:53:57 +01:00
parent ff73ab88ee
commit b43e651f96
2 changed files with 18 additions and 0 deletions

View File

@ -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

11
dist/grzegorz_webui.service vendored Normal file
View File

@ -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