[sr-dev] [tracker] Task opened: kamctl warning when greadlink does not exist

sip-router bugtracker at sip-router.org
Mon Nov 17 14:19:05 CET 2014


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - Morten Tryfoss (mtryfoss) 

Attached to Project - sip-router
Summary - kamctl warning when greadlink does not exist
Task Type - Bug Report
Category - utils
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - Low
Priority - Normal
Reported Version - 4.2
Due in Version - Undecided
Due Date - Undecided
Details - kamctl prints:
/usr/bin/which: no greadlink in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)

Causes pacemaker monitoring to fail.

I think this will be ok:

--- utils/kamctl/kamctl	2014-11-11 13:48:48.000000000 +0100
+++ utils/kamctl/kamctl	2014-11-17 14:14:36.389779782 +0100
@@ -16,12 +16,12 @@
 ### include config files
 
 # check for rc file at same location with kamctl
-which greadlink > /dev/null
+which greadlink 2> /dev/null
 ret=$?
 if [ $ret -eq 0 ] ; then
 	KAMCTLFULLPATH=$(greadlink -f "$0")
 else
-	which readlink > /dev/null
+	which readlink 2> /dev/null
 	ret=$?
 	if [ $ret -eq 0 ] ; then
 		KAMCTLFULLPATH=$(readlink -f "$0")


More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=492

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.



More information about the sr-dev mailing list