Add systemctl support, patch from « ganymede » - 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 e220c32ba514fa015b91629017b5f5a605f193c1 DIR parent 409073df53300e9afa43352fa5be3eebe543b5ec HTML Author: Solene Rapenne <solene@perso.pw> Date: Wed, 30 Dec 2020 17:36:08 +0100 Add systemctl support, patch from « ganymede » Diffstat: M probes.lisp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) --- DIR diff --git a/probes.lisp b/probes.lisp @@ -28,8 +28,11 @@ (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")))) + ;; most linux + (if (probe-file "/usr/sbin/service") + (list "/usr/sbin/service" (getf params :name) "status") + ;; other linux with systemd only + (list "/usr/bin/systemctl" "status" (getf params :name)))))) (create-probe pid-running