Add systemd config
This commit is contained in:
parent
ff73ab88ee
commit
b43e651f96
@ -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
11
dist/grzegorz_webui.service
vendored
Normal 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
|
Loading…
Reference in New Issue
Block a user