Hello. I am trying to understand why the q2server process starts on reboot, but does not listen to any port.
I checked with 'netstat -anp | grep <PID>'
I set it to auto start on reboot with the following cron entry.
Quote:
#this below command for q2 doesn't work for some reason. The q2server starts but it doesn't listen to on any port
#@reboot /home/ts3/q2server/r1q2ded +set ip 50.116.61.37 +set port 27910 +set dedicated 1 +set game opentdm +exec server.cfg +map q2rdm2 > /dev/null 2>&1 &
With the above entry uncommitted and after the host is rebooted, I immediately see the following process with pid
3664, and ppid
1 (init)Quote:
ps -ef | grep q2
ts3 3664 1 1 20:31 ? 00:00:21 /home/ts3/q2server/r1q2ded +set ip 50.116.61.37 +set port 27910 +set dedicated 1 +set game opentdm +exec server.cfg +map q2rdm2
However, when I copy and paste the command myself, it starts the server and also is listening on specified port 27910. I noticed the difference that the ppid is not 1 (init).
Quote:
BASH-ts3@oruvmlnd /home/ts3/q2server# /home/ts3/q2server/r1q2ded +set ip 50.116.61.37 +set port 27910 +set dedicated 1 +set game opentdm +exec server.cfg +map q2rdm2 > /home/ts3/q2server/logs/opentdm-console.log 2>&1 &
[1] 4751
BASH-ts3@oruvmlnd /home/ts3/q2server# ps -ef | grep q2server
ts3 4751 4708 0 20:56 pts/0 00:00:00 /home/ts3/q2server/r1q2ded +set ip 50.116.61.37 +set port 27910 +set dedicated 1 +set game opentdm +exec server.cfg +map q2rdm2
ts3 4753 4708 0 20:57 pts/0 00:00:00 grep q2server
BASH-ts3@oruvmlnd /home/ts3/q2server# netstat -an | grep 27910
tcp 0 0 50.116.61.37:37525 173.236.101.35:27910 ESTABLISHED
udp 0 0 50.116.61.37:27910 0.0.0.0:*
BASH-ts3@oruvmlnd /home/ts3/q2server#
As you can see the server is starting and listening on the right port. But only when i run the command manually, and the ppid is different.