From f023f3cd1099d238ad54d76538ac40d6efb02cce Mon Sep 17 00:00:00 2001 From: wukong Date: Sat, 23 May 2026 22:23:40 -0700 Subject: changed echo statements to printf; changed legacy rrd paths to /tmp/rrd and script dir to ~/srcz; --- start-cisco678polld.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) mode change 100755 => 100644 start-cisco678polld.sh (limited to 'start-cisco678polld.sh') diff --git a/start-cisco678polld.sh b/start-cisco678polld.sh old mode 100755 new mode 100644 index fb82ef0..c26ced4 --- a/start-cisco678polld.sh +++ b/start-cisco678polld.sh @@ -9,7 +9,7 @@ #set -x DAEMON=cisco678polld.sh -DPATH=~/mon_rrd +DPATH=~/srcz/mon_rrd DLOCK=/var/tmp/${DAEMON}.lock @@ -19,10 +19,10 @@ cklock() { if [ -r ${1} ] ; then DPID=$( cat ${1} ) else - echo lock is not readable + printf "lock is not readable\n" fi else - echo lock does not exist + printf "lock does not exist\n" fi } @@ -35,10 +35,10 @@ cklockpid() { grep -v 'grep' |\ awk '{print $1}' ) if [ ${CKPID} ] && [ ${1} -eq ${CKPID} ] ; then - echo proc is running, lock is valid + printf "proc is running, lock is valid" fi else - echo lock pid does not exist + pritf lock pid does not exist\n" fi } @@ -108,7 +108,7 @@ case "${1}" in start_daemon ;; *) - echo "Usage: $0 {start|stop|terminate|exterminate|restart}" + printf "Usage: $0 {start|stop|terminate|exterminate|restart}\n" ;; esac -- cgit v1.2.3