Complete C# server cutover
This commit is contained in:
@@ -8,16 +8,16 @@ Type=simple
|
||||
User=commonwealth
|
||||
Group=commonwealth
|
||||
WorkingDirectory=/opt/commonwealth-online
|
||||
# Complete setup before enabling this unit:
|
||||
# cd /opt/commonwealth-online
|
||||
# ./start.sh --update-dependencies
|
||||
# Do not install dependencies from ExecStart.
|
||||
ExecStart=/opt/commonwealth-online/.venv/bin/python -u /opt/commonwealth-online/consumer_server_cli.py serve --config /opt/commonwealth-online/commonwealth-server.json
|
||||
ExecStart=/opt/commonwealth-online/CommonwealthOnline.Server serve --config /opt/commonwealth-online/commonwealth-server.json
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
# Do not run as root. Create the commonwealth user/group first.
|
||||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
ProtectSystem=strict
|
||||
ProtectHome=true
|
||||
ReadWritePaths=/opt/commonwealth-online
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user