[PATCH 1/2] ibacm: Fix service start_daemon call on Debian

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The script start_daemon does not exist on Debian/Ubuntu.
/lib/lsb/init-functions defines a start_daemon functions that calls
/sbin/start_daemon on openSUSE. Thus call the start_daemon LSB
function instead.

Signed-off-by: Benjamin Drung <benjamin.drung@xxxxxxxxxxxxxxxx>
---
 ibacm/ibacm.init.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ibacm/ibacm.init.in b/ibacm/ibacm.init.in
index bd7b70a1..e53ce1d6 100644
--- a/ibacm/ibacm.init.in
+++ b/ibacm/ibacm.init.in
@@ -35,7 +35,7 @@ if [ -s /etc/init.d/functions ]; then
 elif [ -s /lib/lsb/init-functions ]; then
 	# SLES / OpenSuSE / Debian
 	. /lib/lsb/init-functions
-	_daemon()   { /sbin/start_daemon ${1+"$@"}; }
+	_daemon()   { start_daemon "$@"; }
         _checkpid() { checkproc -p $pidfile @prefix@/sbin/ibacm; }
 	_success()  { log_success_msg; }
 	_failure()  { log_failure_msg; }
-- 
2.11.0

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux