Launcher file to modify - 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 4bcecb442fac7f560879d7ac07bf86a2911d7514
DIR parent 0f22f5b5051b3e26a242faa340b7480346b63435
HTML Author: Solene Rapenne <solene@perso.pw>
Date: Wed, 24 Oct 2018 06:47:31 +0200
Launcher file to modify
Diffstat:
A reed-alert.in | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+), 0 deletions(-)
---
DIR diff --git a/reed-alert.in b/reed-alert.in
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+REEDDIR=
+
+# check for ecl
+type ecl 2>/dev/null
+if [ $? -eq 0 ]
+then
+ LISP="ecl"
+ LOADPARAM="-load"
+ SHELLPARAM="-shell"
+else
+ # check for sbcl if ecl not in PATH
+ type sbcl 2>/dev/null
+ if [ $? -eq 0 ]
+ then
+ LISP="sbcl"
+ LOADPARAM="--load"
+ SHELLPARAM="--shell"
+ else
+ echo "ecl or sbcl not found in PATH."
+ echo "you need at least one of them to use reed-alert"
+ exit 1
+ fi
+fi
+
+$LISP $LOADPARAM $REEDDIR/functions.lisp \
+ $LOADPARAM $REEDDIR/probes.lisp \
+ $SHELLPARAM $1