Page 1 of 1

serverControl plugin with ResetServerAlwaysFile

Posted: Mon May 27, 2019 4:52 pm
by mathiaz
Hi,

I try to make a my server automaticly restart without disturbing eventual games.
So i see that it may be possible with serverControl plugin.

so, i am configuring a debian server with systemd.
But i can t use serverControl plugin as i want

here s the log file :
------------------------

ServerControl - No banfile checks - no BanFile specified
ServerControl - No BanReloadMessage notification
ServerControl - No masterban file checks - no MasterbanFile specified
ServerControl - No MasterBanReloadMessage notification
ServerControl - No ResetServerOnceFile specified
ServerControl - Using ResetServerAlwaysFile: "/path/toFile/reset-server-always"
ServerControl - Server must be empty for server restarts

serverControl.cfg:
-----------------------

[ServerControl]

ResetServerAlwaysFile = "/path/toFile/reset-server-always"

---------------------------
and there is an empty file "/path/toFile/reset-server-always"

the plugin is loaded by
-loadplugin serverControl,/path/to/serverControl.cfg


i can see the plugins loaded, and all the concerning file are world readable ...

and the server dont stop when i leave the game...
where am i wrong?

tks

Re: serverControl plugin with ResetServerAlwaysFile

Posted: Wed May 29, 2019 3:48 am
by Zehra
While I am not certain of the issue with the 'serverControl' plug-in, the following may be of some use:
If the goal is simply to "shutdown" the server after a game and players leave, the below may be passed as a command line option when starting BZFS.

Code: Select all

-g
The above simply causes the server to provide a single game and shutdown afterwards.
It can combined with a start-up script to provide an easy way of resetting maps.

-Zehra

Re: serverControl plugin with ResetServerAlwaysFile

Posted: Wed May 29, 2019 7:57 am
by mathiaz
It sounds like what i am looking for, i will test it soon.

Thanks
:)