first commit

This commit is contained in:
이수준 2023-09-06 14:54:44 +09:00
parent d36b2a0183
commit 931a38fd0a
3 changed files with 14 additions and 4 deletions

View File

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

View File

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
sudo cp /usr/local/sdt/app/awx-perfermance/awx-perfermance.service /etc/systemd/system/ sudo cp /usr/local/sdt/app/awx-perfermance-arm32/awx-perfermance-arm32.service /etc/systemd/system/
sudo systemctl start awx-perfermance sudo systemctl start awx-perfermance-arm32
sudo systemctl enable awx-perfermance sudo systemctl enable awx-perfermance-arm32

View File

@ -5,7 +5,7 @@ from datetime import datetime
import time import time
import yaml 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) yamlData = yaml.load(f, Loader=yaml.FullLoader)