serverControl plugin with ResetServerAlwaysFile

Need help seting up a server, or have a question on how to run one? This is the place.
Post Reply
User avatar
mathiaz
Private First Class
Private First Class
Posts: 44
Joined: Sat May 27, 2006 11:59 pm

serverControl plugin with ResetServerAlwaysFile

Post by mathiaz » Mon May 27, 2019 4:52 pm

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
<°)))><|

User avatar
Zehra
Private First Class
Private First Class
Posts: 618
Joined: Sun Oct 18, 2015 3:36 pm
Location: Arctic

Re: serverControl plugin with ResetServerAlwaysFile

Post by Zehra » Wed May 29, 2019 3:48 am

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
Those who are critical of me, I'll likely be the same of them. ~Zehra
There's always something to remember and it's been a game I love. ~Zehra
The time spent is a time which can never be regained, so it's a time to enjoy. ~Zehra
The decisions we make are the ones we look forward too and the ones we regret. ~Zehra
There's a difference between knowing my name and knowing me, one shows respect to my name and the other is to who I am. ~Zehra

See where I've last been active at Strayers.

User avatar
mathiaz
Private First Class
Private First Class
Posts: 44
Joined: Sat May 27, 2006 11:59 pm

Re: serverControl plugin with ResetServerAlwaysFile

Post by mathiaz » Wed May 29, 2019 7:57 am

It sounds like what i am looking for, i will test it soon.

Thanks
:)
<°)))><|

Post Reply