AWOG
    • Categories
    • Recent
    • Users
    • Discord
    • TeamSpeak
    • Steam Group
    • Register
    • Login

    [RELEASE] Cron Manager

    IW4m Administrator
    release
    3
    8
    2.4k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • XerxesX
      Xerxes
      last edited by Xerxes

      Introduction

      A plug-in allows you to run commands time based on either the game via rcon or as shell commands on your system. All timings are controlled just like cronjobs. It comes with 2 built-in commands and has a placeholder for the PID of each server for your custom scripts.

      Features:

      • Uses Cron’s syntax
      • Allows to easily send rcon commands
      • Allows to easily use build in commands
        • @kill - kills the server process
        • @processinfo - shows some basic information about the server process, C# limits us here a bit.
      • Allows to easily define custom commands
        • !!taskkill /F /PID {PID} for example does the same as @kill

      Download:

      You are NOT allowed to mirror or hot link this file.

      Download Cron Manager.

      ~Head admin

      1 Reply Last reply Reply Quote 0
      • K
        Kalitos
        last edited by

        @xerxes said in [RELEASE] Cron Manager:

        omes with 2 built-in commands and has a placeholder for the PID of each server for your custom scripts.

        I could give an example of how to use it in a T6 server that at a certain time 12:00 pm the server is closed if it is empty. If there are players, do it when it’s empty.

        XerxesX 1 Reply Last reply Reply Quote 0
        • XerxesX
          Xerxes @Kalitos
          last edited by

          @kalitos said in [RELEASE] Cron Manager:

          If there are players, do it when it’s empty.

          It doesn’t support postponing commands.

          ~Head admin

          K 1 Reply Last reply Reply Quote 0
          • K
            Kalitos @Xerxes
            last edited by

            @xerxes

            {
                  "cron": "0 0 * * * *",
                  "command": "quit",
                  "ignorePlayers": true,
                  "game": "T6"
                },
            

            According to this code, it will run at midnight every day, but since I make it run on a certain server, I must specify the ip:port or what I must do. ?

            XerxesX 1 Reply Last reply Reply Quote 0
            • XerxesX
              Xerxes @Kalitos
              last edited by

              At the moment it is only taking whole games so everything is executed for all servers of a game. If you want me to I can change it to either game or game server endpoint.

              ~Head admin

              K 1 Reply Last reply Reply Quote 0
              • K
                Kalitos @Xerxes
                last edited by

                @xerxes I would appreciate if it were possible to run it for a certain server, since I manage several t6 servers and with the plugin I would only like to restart the zombie servers. :grinning_face_with_big_eyes:

                1 Reply Last reply Reply Quote 0
                • E
                  eizekiels
                  last edited by

                  Sorry to revive,

                  Doesn’t taskkill on PID defeats the whole purpose of the plugin since PIDs gets randomly generated every restart?

                  I find this plugin especially useful for T5 where servers tends to stop working every now and then, to avoid force restarting all servers at once.

                  Would you mind giving more info on how to use @processinfo / an example for a specified server?

                  XerxesX 1 Reply Last reply Reply Quote 0
                  • XerxesX
                    Xerxes @eizekiels
                    last edited by

                    The plugin obviously does loop up the pid first, @processinfo is way too limited due to the .net framework not exposing a lot. There is no way to set-up something for a single server.

                    ~Head admin

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post