Fix xonotic server deployment
This commit is contained in:
parent
af1460b446
commit
05dfc4c340
|
@ -30,14 +30,14 @@ sv_vote_call 1
|
||||||
sv_weaponstats_file http://www.xonotic.org/weaponbalance/
|
sv_weaponstats_file http://www.xonotic.org/weaponbalance/
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat > /etc/systemd/system/xonoto.service <<EOF
|
cat > /etc/systemd/system/xonotic.service <<EOF
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Unvanguished server
|
Description=Unvanguished server
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
WorkingDirectory=${xonotic_directory}
|
WorkingDirectory=${xonotic_directory}
|
||||||
ExecStart=${xonotic_directory}daemonded -pakpath ${unvanquished_directory}/share/pkg/ -libpath ${unvanquished_directory}/bin/ -homepath \${HOME}/unvanguished_home/ +exec unvanguished.cfg
|
ExecStart=/usr/bin/console2web -p 62550 ${xonotic_directory}daemonded -pakpath ${unvanquished_directory}/share/pkg/ -libpath ${unvanquished_directory}/bin/ -homepath \${HOME}/unvanguished_home/ +exec unvanguished.cfg
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
User=${systemuser}
|
User=${systemuser}
|
||||||
|
|
||||||
|
@ -46,6 +46,6 @@ WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl enable --now xonoto.service
|
systemctl enable --now xonotic.service
|
||||||
|
|
||||||
firewall-cmd --zone=public --add-port=26000/udp --permanent
|
firewall-cmd --zone=public --add-port=26000/udp --permanent
|
||||||
|
|
Reference in New Issue