first commit
This commit is contained in:
parent
d36b2a0183
commit
931a38fd0a
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=awx-perfermance-arm32
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/python3 /usr/local/sdt/app/awx-perfermance-arm32/main.py
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
sudo cp /usr/local/sdt/app/awx-perfermance/awx-perfermance.service /etc/systemd/system/
|
||||
sudo systemctl start awx-perfermance
|
||||
sudo systemctl enable awx-perfermance
|
||||
sudo cp /usr/local/sdt/app/awx-perfermance-arm32/awx-perfermance-arm32.service /etc/systemd/system/
|
||||
sudo systemctl start awx-perfermance-arm32
|
||||
sudo systemctl enable awx-perfermance-arm32
|
||||
|
|
2
main.py
2
main.py
|
@ -5,7 +5,7 @@ from datetime import datetime
|
|||
import time
|
||||
import yaml
|
||||
|
||||
with open('/usr/local/sdt/app/awx-perfermance/config.yaml', encoding='UTF-8') as f:
|
||||
with open('/usr/local/sdt/app/awx-perfermance-arm32/config.yaml', encoding='UTF-8') as f:
|
||||
yamlData = yaml.load(f, Loader=yaml.FullLoader)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue