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")
|
||||
;; 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
|
||||
|
|
Loading…
Reference in New Issue