Strange problem while getting server status

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

mpezeshkzade
Posts: 1
Joined: 29 Jul 2017, 10:28

Strange problem while getting server status

Postby mpezeshkzade » 29 Jul 2017, 10:42

Hi.I have problem while getting status of sfs2x.
When I execute this command: sfs2x-service status , returned: The daemon is stopped.
But I can login in the game and even connect to AdminTool.It is strange!
I use SFS2X 2.12.3 and client version is 1.7.2.0(Unity).
Server os is Centos(6.8).
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Strange problem while getting server status

Postby Lapo » 29 Jul 2017, 10:58

Yes this is normal, if you have restarted the server from the AdminTool one or more time.
What happens is that the sfs2x-service command keeps track of the original pid (process id) assigned when the server started the first time. If you then restart it from the AdminTool a new process (with a new pid) will be generated and therefore the sfs2x-service command won't be able to track it.

Bottom line: if you restart the server via the command line, no problem. But if you do it from AdminTool it won't be able to tell you the correct state.

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 129 guests