So i recently moved from
centos 8 to
centos 7 where i host about 3
csgo server in my personal dedicated computer. And the issue here is that running the
server2.sh file which is
Code:
#!/bin/bash
cd "/home/username/server2/"
screen -L -dmS retake ./srcds_run -game csgo -console -usercon +game_type 0 +game_mode 0 -maxplayers_override 11 +exec server.cfg +map de_mirage -tickrate 128 +sv_setsteamaccount XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +ip 192.168.1.100 -net_port_try 1 -port 27016 -nohltv
This will give this error :
Code:
NET_CloseAllSockets
WARNING: NET_OpenSocket: bind: Cannot assign requested address
Couldn't allocate any server IP port, tried 1 addresses 192.168.1.100 Tue Apr 20 08:01:08 +0545 2021: Server Quit
If i remove the "
+ip" from the server2.sh file , it will work but the rcon then will not work. And rcon is a must have for me.
And executing this through the
bash works without a hitch and the
server starts but will not work when using
cron or
system.d to start after boot. I've setup my
cron like so:
Code:
@reboot /home/username/server2/server2.sh
Ive never faced this problem before and tried every method to fix it but it just doesnt work.