patrix87 / PowerShellGSM

A Comprehensive PowerShell Tool for Simple Automated Game Server Management.
https://github.com/patrix87/PowerShellGSM/
MIT License
109 stars 19 forks source link

add extra monitoring helpers from fork #67

Open BananaAcid opened 4 months ago

BananaAcid commented 4 months ago

I found these to be useful to monitor the status of the running servers:

https://github.com/Aeneas1/PowerShellGSM/commit/01e8c807ec4ae8046e07e19a068485ee818304b2 https://github.com/Aeneas1/PowerShellGSM/commit/cba08bb95ece29432e7f5dd3e7597235f38b6c15 https://github.com/Aeneas1/PowerShellGSM/commit/77c4d8ce25d9cdde0abbf8e36ca71c4251734df2 https://github.com/Aeneas1/PowerShellGSM/commit/aedbd5013ee87289ab65343d9c8d4b3ce558cf9b

Aeneas1 commented 4 months ago

oh that is still WIP, but feel free to use what ever you like. my plan is to replace the windows tasks cause a server with 5+ gameserver is not useble, with tasks running every 5min.

BananaAcid commented 4 months ago

nice @Aeneas1

Had a similar thought about replacing tasks und using nssm for adding services (used it in another project as a cheap solution)

What were you thinking about being a solution @Aeneas1

@patrix87 How do you feel about changing / making it an option

Aeneas1 commented 4 months ago

i will do it with the monitor thread. the monitor will check if the a server is alive, need a update or what ever. so only the monitor is running. then is only 1 windows task needed to check if the monitor is running. i can try to improve the monitor in the next days.

patrix87 commented 3 months ago

At this point I was thinking about rewritting the whole thing in C# as an application with a single task-scheduler task to check if it's still alive. That application would take care of monitoring everything.

I clearly don't have the time for that right now though.

omayhemo commented 2 months ago

If you do, let a C# service handle the chron jobs, don't use the scheduler.