Godot reads get_cmdline_user_args() which only contains args after '--'. Without the separator, NetworkManager never saw --server and the ENetMultiplayerPeer never bound UDP 7777. Verified on 192.168.0.89: udp/7777 now listening.
18 lines
405 B
Desktop File
18 lines
405 B
Desktop File
[Unit]
|
|
Description=DauphinCraft Dedicated Server
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=dauphin
|
|
Group=dauphin
|
|
WorkingDirectory=/opt/dauphincraft
|
|
ExecStart=/opt/dauphincraft/DauphinCraftServer.x86_64 --headless -- --server --port 7777
|
|
Restart=always
|
|
RestartSec=5
|
|
StandardOutput=append:/var/log/dauphincraft.log
|
|
StandardError=append:/var/log/dauphincraft.log
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|