-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a configurable "ignored service" list to checkservices
This commit aims to introduce an ignored service list that contains services that are known to cause parsing errors and/or issues when being restarted. Elements can be added to the list with the `-i "service_name".service` option (e.g. `checkservices -i sddm.service NetworkManager.service`) Fixes #44
- Loading branch information
Showing
1 changed file
with
13 additions
and
2 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
This handling is not very getopts-like and does not work e.g. if the user runs
checkservices -ia
...There is a simple way to handle an option with a required value and it can be used multiple times on the command line, see https://stackoverflow.com/a/20761893
The example usage would be
checkservices -i sddm.service -i NetworkManager.service