Files
Enigma-Synology-Monitor/synology-monitor.service

27 lines
706 B
Desktop File
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[Unit]
Description=Synology Monitor Service
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
# ── Change these paths to match your server ────────────────────────────────────
User=monitor
WorkingDirectory=/opt/synology-monitor
ExecStart=/opt/synology-monitor/venv/bin/python monitor.py
# Restart automatically if it crashes
Restart=always
RestartSec=30
# Load environment from .env file
EnvironmentFile=/opt/synology-monitor/.env
# Logging journald will capture stdout/stderr
StandardOutput=journal
StandardError=journal
SyslogIdentifier=synology-monitor
[Install]
WantedBy=multi-user.target