service
This commit is contained in:
parent
ef1a158b5a
commit
0dfc81264d
|
@ -1,14 +1,12 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Icinga to Kuma converter.
|
Description=MatrixGPT bot.
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=flask
|
User=matrix-bots
|
||||||
Environment="ICINGA2KUMA_ICINGA2_PW=[your icinga2 API password]"
|
WorkingDirectory=/opt/MatrixGPT/
|
||||||
WorkingDirectory=/opt/icinga2-checks
|
|
||||||
ExecStart=/opt/MatrixGPT/venv/bin/python3 /opt/MatrixGPT/main.py --config /etc/matrixgpt/config.yaml
|
ExecStart=/opt/MatrixGPT/venv/bin/python3 /opt/MatrixGPT/main.py --config /etc/matrixgpt/config.yaml
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue