-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an exporter for FreeBSD rc services #129
base: master
Are you sure you want to change the base?
Conversation
0bae38b
to
06335fa
Compare
OK, I've fixed some things that the CI was complaining about. |
06335fa
to
ab7c306
Compare
ab7c306
to
b04f211
Compare
This script exports FreeBSD rc service status information whether a given service is running or not. Sponsored by: Klara Inc. Sponsored by: ELW – Entsorgungsbetriebe der Landeshauptstadt Wiesbaden Signed-off-by: Mateusz Piotrowski <[email protected]>
Signed-off-by: Mateusz Piotrowski <[email protected]>
Thanks @discordianfish! |
@@ -0,0 +1,139 @@ | |||
#! /bin/sh - |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any chance this could be made /usr/bin/env sh
to align with the shebangs used by other collectors?
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The whole repo is already licensed as Apache-2.0. This is superfluous.
# | ||
|
||
help() { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Superfluous blank line.
# (but not ideal) indication of which services are long-running programs like | ||
# web servers. | ||
list_services_with_status() { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Superfluous blank line.
This script exports FreeBSD rc service status information whether a given service is running or not.
Sponsored by: Klara Inc.
Sponsored by: ELW – Entsorgungsbetriebe der Landeshauptstadt Wiesbaden
Signed-off-by: Mateusz Piotrowski [email protected]