servizio backend
This commit is contained in:
28
terrain-monitor.service
Normal file
28
terrain-monitor.service
Normal 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
|
||||
Reference in New Issue
Block a user