servizio backend

This commit is contained in:
2025-10-20 19:56:47 +02:00
parent 7a0ac13247
commit fc529b4134
4 changed files with 271 additions and 0 deletions

28
terrain-monitor.service Normal file
View File

@@ -0,0 +1,28 @@
[Unit]
Description=Terrain Monitor Backend Service
After=network.target postgresql.service mosquitto.service
Wants=postgresql.service mosquitto.service
[Service]
Type=simple
User=alex
Group=alex
WorkingDirectory=/home/alex/devel/web-app-python
EnvironmentFile=/home/alex/devel/web-app-python/.env
ExecStart=/home/alex/devel/web-app-python/start_backend.sh
# Restart configuration
Restart=always
RestartSec=10
# Security settings
NoNewPrivileges=true
PrivateTmp=true
# Logging
StandardOutput=journal
StandardError=journal
SyslogIdentifier=terrain-monitor
[Install]
WantedBy=multi-user.target