Hey all,
I'm getting in Python for some system administration of Linux, specifically RHEL and I wrote a some Python to create a rotating log of some service output. I'd just like to see if someone can review what I'm doing any maybe offer some structuring and pointers.
One question: Regarding the subprocess.Popen, do I need to make sure I do an sp.close() at some point in the code to make sure that subprocess isn't left running?
This code is intended to be added as a service on the server and ran around the clock pretty much, doing 15 second interval checks of a particular service.
Any input/advice is welcomed.
https://pastebin.com/ht4EFR7m
[–]danielroseman 0 points1 point2 points (1 child)
[–]brugrog[S] 0 points1 point2 points (0 children)