[PC-BSD Commits] r15674 - pcbsd/current/src-sh/pbi-manager

svn at pcbsd.org svn at pcbsd.org
Fri Mar 2 09:50:39 PST 2012


Author: kris
Date: 2012-03-02 17:50:38 +0000 (Fri, 02 Mar 2012)
New Revision: 15674

Modified:
   pcbsd/current/src-sh/pbi-manager/pbi-manager
Log:

Let us override the default logfile



Modified: pcbsd/current/src-sh/pbi-manager/pbi-manager
===================================================================
--- pcbsd/current/src-sh/pbi-manager/pbi-manager	2012-03-02 13:23:28 UTC (rev 15673)
+++ pcbsd/current/src-sh/pbi-manager/pbi-manager	2012-03-02 17:50:38 UTC (rev 15674)
@@ -4289,7 +4289,12 @@
 # Start the PBID daemon
 do_pbid() {
 
-	_pbid_log="/var/log/pbid.log"
+	# Allow user supplied logfile
+        if [ -z "${PBID_LOGFILE}" ] ; then
+	  _pbid_log="/var/log/pbid.log"
+	else
+          _pbid_log="${PBID_LOGFILE}"
+        fi
 
 	# Set verbosity 
 	_redir="&1"



More information about the Commits mailing list