Just released v.14, added backup options (see the
Release Notes).
Also fixed the permissions problem when installing/updating. Shame on me, just did not notice this when testing
Oh I noticed another thing, in the players.xml file in the instance if the nick has a space in it then it gets cut off at the first space. Not sure if that's intended or what but thought I should mention it anyway.
Yeah, of course that's intended
No, it's not, never thought about the possibility for a player name to contain spaces. Could you send me a snippet of the output_log.txt containing a "RequestToSpawnPlayer:"-line for such a player?
So is there some way to do an announcement for auto restarts? I was hoping to setup auto restarts every 6 hours or something so that it gives a series of warnings saying it's about to restart. For example:...
Then it waits for a small period of time. Then it restarts.
Hm, one could simply do this by an external script using the functions of the management scripts (i.e. the telnet-interface). Of course I could also add this internally but I think that's too user dependent. Added as
ticket 15 for now.
When the server is down it could even optionally do a backup before starting up again ...
Well, this is the ideal usage example for hooks

Just write a hook for serverPostStop which executes
7dtd.sh backup.
or restart the system (if there were kernel updates installed or something)
That definitely won't go in the normal release as this is way to much depending on what the server is doing. Should never be done automatically IMHO.
or optionally update things automatically in the future
Again too dangerous. What if an update breaks compatibility in some aspect? The server might not be able to start again until the admin notices.
or at least check for updates and optionally send an email if there is an update for this script or for 7dtd or whatever else there happens to be to check for updates for.
For the scripts this could be done. For 7dtd I already thought about it myself but unfortunately SteamCMD doesn't provide a command to
only check for updates but only allows to actually run the update
Added as
ticket 16 though, might find some way.
Have never worked with expect myself, but I don't see an obvious reason why it should not work. You could also use the provided function telnetCommand though which basically does the same.
Code:
. /usr/local/lib/7dtd/common.sh
checkRootLoadConf
telnetCommand <instancename> <command> [timeout=1s]
Command would be "lp" or "say Checkout
http://your.website.goes.here for server info" in the case of the linked thread.
Regards,
Alloc