-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added timeout and lockfile functionality
We ran into some issues where a "omd restart naemon" would get stuck because there were changes at the naemon core. At this point the script was also hanging. That's why I had to remove the proc.communicate that captures stdout and stderr and used a different approach. Also I verify if a service restarted correctly or failed. Also, there are some really slow systems that take very long to restart naemon, that's why I added a timeout parameter.
- Loading branch information
Showing
1 changed file
with
88 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters