mirror of git://bitreich.org/reed-alert
dd gentoo rc-service support
This commit is contained in:
parent
5bcf5ae779
commit
8e2203d405
10
probes.lisp
10
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
|
||||
|
|
Loading…
Reference in New Issue