prod preparations
This commit is contained in:
30
faction-war.service
Normal file
30
faction-war.service
Normal file
@@ -0,0 +1,30 @@
|
||||
[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
|
||||
Reference in New Issue
Block a user