31 lines
571 B
Desktop File
31 lines
571 B
Desktop File
[Unit]
|
|
Description=Faction War Dispatch Bot
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=factionwar
|
|
Group=factionwar
|
|
WorkingDirectory=/opt/faction-war/app
|
|
Environment="PATH=/opt/faction-war/app/venv/bin"
|
|
ExecStart=/opt/faction-war/app/venv/bin/python main.py
|
|
|
|
# Restart policy
|
|
Restart=always
|
|
RestartSec=10
|
|
|
|
# Security hardening
|
|
NoNewPrivileges=true
|
|
PrivateTmp=true
|
|
ProtectSystem=strict
|
|
ProtectHome=true
|
|
ReadWritePaths=/opt/faction-war/app/data
|
|
|
|
# Logging
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=faction-war
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|