dd gentoo rc-service support - reed-alert - Lightweight agentless alerting system for server
HTML git clone git://bitreich.org/reed-alert/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/reed-alert/
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
DIR LICENSE
---
DIR commit 8e2203d405f186f1c5e6968d37e45482a7175399
DIR parent 5bcf5ae779478fbb3233740aa9ce5583a6f0e0bf
HTML Author: Solene Rapenne <solene@perso.pw>
Date: Wed, 10 Jan 2018 20:16:34 +0100
dd gentoo rc-service support
Diffstat:
M probes.lisp | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
---
DIR diff --git a/probes.lisp b/probes.lisp
@@ -22,8 +22,14 @@
(command-return-code
#+openbsd
(list "/usr/sbin/rcctl" "check" (getf params :name))
- #+(or freebsd linux)
- (list "/usr/sbin/service" (getf params :name) "status")))
+ #+freebsd
+ (list "/usr/sbin/service" (getf params :name) "status")
+ #+linux
+ (if (probe-file "/etc/portage/make.conf")
+ ;; gentoo
+ (list "/sbin/rc-service" (getf params :name) "status")
+ ;; other linux (this can be improved if needed)
+ (list "/usr/sbin/service" (getf params :name) "status"))))
(create-probe
pid-running