mirror of git://bitreich.org/reed-alert
Add systemctl support, patch from « ganymede »
This commit is contained in:
parent
409073df53
commit
e220c32ba5
|
@ -28,8 +28,11 @@
|
||||||
(if (probe-file "/etc/portage/make.conf")
|
(if (probe-file "/etc/portage/make.conf")
|
||||||
;; gentoo
|
;; gentoo
|
||||||
(list "/sbin/rc-service" (getf params :name) "status")
|
(list "/sbin/rc-service" (getf params :name) "status")
|
||||||
;; other linux (this can be improved if needed)
|
;; most linux
|
||||||
(list "/usr/sbin/service" (getf params :name) "status"))))
|
(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
|
(create-probe
|
||||||
pid-running
|
pid-running
|
||||||
|
|
Loading…
Reference in New Issue