Skip to content

Automated l4d2server Monitor does not check for Stop state #95

Closed

Description

@patriotgames

Daniel,
Thank you for creating these great scripts. I use a modified version of your L4D2 server script to manage 5+ servers, but have found one small bug:

If a server is intentionally stopped with "l4d2server stop" the monitor will automatically restart the server when using a Crontab automated monitor service:

*/2 * * * * /home/l4d2server/l4d2server monitor > /dev/null 2>&1

Notice I am using a 2 minute monitor cycle. It seems fn_monitorserver should have a check for an intentional Stop state as it does for an Update state. In other words, if I intentionally stop the sever the monitor should not restart it.

Thank you again for sharing your work.

Cheers,
Patriot

Activity

  1. zietbukuel commented on Jun 20, 2014

    @zietbukuel

    I agree. This also happens with the KF script.

  2. dgibbs64 commented on Jun 20, 2014

    @dgibbs64
    Member

    This is a great idea. I think some sort of lock file when started. The monitor could check if this is present. If not the monitor will not check the server is running.

  3. patriotgames commented on Jun 20, 2014

    @patriotgames
    Author

    That would be perfect! If you provide the code or a modified script, I would be glad to test it on my server and report back to you.

  4. dgibbs64 commented on Jun 20, 2014

    @dgibbs64
    Member

    Awesome give me a couple of weeks and I will release an update :)

  5. dgibbs64 commented on Jun 20, 2014

    @dgibbs64
    Member

    I have just finished the concept and it works. Now I will just need to tidy up the code and add error handling etc.

  6. zietbukuel commented on Jun 20, 2014

    @zietbukuel

    Very nice Daniel, thanks 👍

  7. self-assigned this
    on Jun 21, 2014
  8. dgibbs64 commented on Jun 24, 2014

    @dgibbs64
    Member

    Completed. This feature is now available on the current release. Let me know if you have any bugs etc.

  9. lock commented on Jul 20, 2018

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  10. locked as resolved and limited conversation to collaborators on Jul 20, 2018
  11. added
    maintenance: relabel-backfill
    and removed
    maintenance: relabel-backfill
    on May 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

engine: sourcegame: Left 4 Dead 2type: feature

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions