update
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=Fleet Control - Remote Node Agent
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
# Agent must be run as root for services restart (MMDVMHost etc.) and use GPIO
|
||||
User=root
|
||||
WorkingDirectory=/opt/node_agent
|
||||
ExecStart=/usr/bin/python3 /opt/node_agent/system_monitor.py
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,19 @@
|
||||
[Unit]
|
||||
Description=Fleet Control Console - Central Hub
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
WorkingDirectory=/opt/web-control
|
||||
ExecStart=/usr/bin/python3 /opt/web-control/app.py
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
|
||||
# Ottimizzazioni per la gestione dei log
|
||||
StandardOutput=syslog
|
||||
StandardError=syslog
|
||||
SyslogIdentifier=fleet-console
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user