Jump to content

Tripodzomboid

Member
  • Posts

    7
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Tripodzomboid's Achievements

  1. Running a server this way makes remote administration significantly easier, as the only other way to handle a remote server and do other tasks on the same machine during the same remote session is to use a terminal multiplexer like GNU Screen or tmux. but even if you disagree with this usecase handling SIGTERM will provide some valuable safeties against other SIGTERM scenarios such as an accidental system reboot.
  2. SIGTERM is usually understood to be a friendly request for a program to exit, which is why it is allowed to be caught and ignored. Catching SIGTERM and nicely exiting will allow the Zomboid server to be managed correctly by SystemD (init system), which sends SIGTERMS to manage daemons and processes, as many linux server owners might want to manage their server as a daemon (how many servers are managed, like http, ssh, sftp etc...), and prevent data loss for example if a sysadmin reboots their system without properly saving their Zomboid server, as systemd will send SIGTERM to processes to ask them to close for a reboot (a stop job), if for some reason the server can't exit correctly systemD will eventually send SIGKILL (unfriendly). Perhaps this is already the functionality though and I am doing something wrong? Does system.exit() properly save the world file? I believe this issue caused me a world rollback as I manage my Zomboid server as a daemon, which the wiki recommends.
  3. • Version? • Singleplayer/Multiplayer? • Host or dedicated? • Mods? • Old or new save? • Reproduction steps: • 41.78 • Multiplayer • Dedicated • No Mods • N/A • Reproduction steps: Start a Zomboid server on Linux, and send SIGTERM(Signal 15) to it's PID, expected behavior should be a graceful exit (should be equivalent to "quit"), but instead the server will terminate ungracefully and not properly save. See: https://dsa.cs.tsinghua.edu.cn/oj/static/unix_signal.html
×
×
  • Create New...