Files
Commonwealth-Online-Server/server/commonwealth-online.service.example

24 lines
560 B
Plaintext

[Unit]
Description=Commonwealth Online Server
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=commonwealth
Group=commonwealth
WorkingDirectory=/opt/commonwealth-online
ExecStart=/opt/commonwealth-online/CommonwealthOnline.Server serve --config /opt/commonwealth-online/commonwealth-server.json
Restart=on-failure
RestartSec=5
StandardOutput=journal
StandardError=journal
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/opt/commonwealth-online
[Install]
WantedBy=multi-user.target