Commit dafd110d authored by thomas.forbriger's avatar thomas.forbriger

ThiesDL1 [FIX]: correct syslog level and messages of shell scripts

parent 25207bc8
......@@ -31,7 +31,7 @@
#
# ============================================================================
echo "$0" | /bin/logger -i -t "DL1logger" 2>&1
echo "run $0" | /bin/logger -i -t "DL1logger" 2>&1
LOGGERBINARY=$HOME/bin/linux/DL1logger
......
......@@ -29,16 +29,24 @@
#
PROGRAMS=DL1logger DL1direct
SHELLSCRIPTS=chronyreport.sh DL1logger.sh DL1sum.sh launchDL1logger.sh \
ntpreport.sh
.PHONY: all
all: install
.PHONY: install
install: $(addprefix $(LOCBINDIR)/,$(PROGRAMS))
install: $(addprefix $(LOCBINDIR)/,$(PROGRAMS)) \
$(addprefix $(LOCSCRIPTDIR)/,$(SHELLSCRIPTS))
$(LOCBINDIR)/%: %
mkdir -pv $(LOCBINDIR)
/bin/mv -fv $< $(LOCBINDIR)
$(LOCSCRIPTDIR)/%: %
mkdir -pv $(LOCSCRIPTDIR)
/bin/mv -fv $< $(LOCSCRIPTDIR)
#----------------------------------------------------------------------
# do not link against shared libraries
......@@ -87,7 +95,7 @@ clean: ;
CHECKVAR=$(if $($(1)),,$(error ERROR: missing variable $(1)))
CHECKVARS=$(foreach var,$(1),$(call CHECKVAR,$(var)))
$(call CHECKVARS,LOCINCLUDEDIR LOCLIBDIR LOCBINDIR)
$(call CHECKVARS,LOCINCLUDEDIR LOCLIBDIR LOCBINDIR LOCSCRIPTDIR)
$(call CHECKVARS,TF_BROWSER TF_WWWBASEDIR)
FLAGS += $(MYFLAGS) -fPIC
......
......@@ -28,7 +28,7 @@
#
# ============================================================================
#
echo "$0" | /bin/logger -i -p user.notice -t "DL1logger" 2>&1
echo "run $0" | /bin/logger -i -p user.notice -t "DL1logger" 2>&1
echo "check status of time sources" | /bin/logger -i -p user.notice -t "DL1logger" 2>&1
/usr/bin/chronyc sources | /bin/logger -i -p user.notice -t "DL1logger" 2>&1
/usr/bin/chronyc sourcestats | /bin/logger -i -p user.notice -t "DL1logger" 2>&1
......
......@@ -26,7 +26,7 @@
# 19/12/2008 V1.0 Thomas Forbriger
#
# ============================================================================
echo "$0" | /bin/logger -i -t "DL1logger" 2>&1
echo "run $0" | /bin/logger -i -p user.info -t "DL1logger" 2>&1
echo "check logger" | /bin/logger -i -p user.info -t "DL1logger" 2>&1
SCRIPTDIR=$HOME/bin/scripts
LOGGERSCRIPT=$SCRIPTDIR/DL1logger.sh
......
......@@ -27,7 +27,7 @@
#
# ============================================================================
#
echo "$0" | /bin/logger -i -t "DL1logger" 2>&1
echo "run $0" | /bin/logger -p user.notice -i -t "DL1logger" 2>&1
echo "check status of NTP peers" | /bin/logger -i -p user.notice -t "DL1logger" 2>&1
/usr/sbin/ntpq -p | /bin/logger -i -p user.notice -t "DL1logger" 2>&1
# ----- END OF ntpreport.sh -----
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment