Jump to content

Search the Community

Showing results for tags 'systemd'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News & Announcements
    • News
  • Project Zomboid
    • PZ Updates
    • General Discussions
    • Bug Reports
    • PZ Support
    • PZ Multiplayer
    • PZ Community & Creativity
    • PZ Suggestions
  • PZ Modding
    • Tutorials & Resources
    • Mods
    • Items
    • Mapping
    • Mod Ideas and Requests
  • General Games Development
    • Indie Scene
  • Other Discussions
    • General Discussion
    • Forum Games & Activities

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Twitter


Interests

Found 1 result

  1. hey FOR ALL LINUX SERVER OWNERS i made a systemd service that works with 64-bit PZ. If you aren't familiar with systemd, it's the process manager that most modern linux distros use. I have tested this on a server with an already-active save folder (I ran the start-server.sh script first, then started using this method). The service file should look like this: Replace [USER] with the user that first executed the server (it might be steam), otherwise the server will prompt for a nonexistent admin account, then quit without loading the world. Replace [DIR] with the *absolute* path to your "Project Zomboid Dedicated Server" game directory (i.e. /home/user/.steam/steamapps/common/Project Zomboid Dedicated Server). Save the file as pzserver.service, then copy it to /etc/systemd/system. Reboot systemd: systemctl daemon-reload Start the server: systemctl start pzserver Check its status: systemctl status pzserver. You should see a green active status with terminal output similar to that of start-server.sh. To stop the server: systemctl stop pzserver. This will kill it immediately, so make sure to save it first. I recommend using RCON for sending commands like "save". To restart the server: systemctl restart pzserver. This is the same as stop then start. To make the server run at bootup: systemctl enable pzserver. Here is an RCON client that will work with PZ: https://github.com/n0la/rcon. If you have not installed this, the "ExecStop" lines with rcon should be removed. The service should still work, but the server will stop ungracefully. With autosave this shouldn't be an issue but keep in mind some things may break if you shut down with players online. You can easily integrate these commands with any scripts or admin tools you have written. Happy admin-ing
×
×
  • Create New...