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

svn at pcbsd.org svn at pcbsd.org
Thu Nov 11 11:09:03 PST 2010


Author: kris
Date: 2010-11-11 11:09:03 -0800 (Thu, 11 Nov 2010)
New Revision: 8019

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

Added /var/log/pbid.log so we can see what pbid is doing



Modified: pcbsd/current/src-sh/pbi-manager/pbi-manager
===================================================================
--- pcbsd/current/src-sh/pbi-manager/pbi-manager	2010-11-11 15:52:01 UTC (rev 8018)
+++ pcbsd/current/src-sh/pbi-manager/pbi-manager	2010-11-11 19:09:03 UTC (rev 8019)
@@ -2795,9 +2795,12 @@
 # Start the PBID daemon
 do_pbid() {
 
+	_pbid_log="/var/log/pbid.log"
+
 	# Set verbosity 
 	_redir="&1"
 	if [ "${PBI_VERBOSE}" != "YES" ] ; then _redir="/dev/null" ; fi
+	echo "Started pbid: `date`" > ${_pbid_log}
 
 	while
 	i=1
@@ -2805,7 +2808,9 @@
 		# Check if we have a dirty hash-dir to cleanup
 		if [ -e "${PBI_DBDIRTYFILE}" ] ; then
 			init_tmpdir
-			pbi_clean_hashdir >${_redir} 2>${_redir}
+			echo "Cleaning hash-dir: `date`" >> ${_pbid_log}
+			pbi_clean_hashdir >>${_redir} 2>>${_redir}
+			echo "Finished cleaning hash-dir: `date`" >> ${_pbid_log}
 			rm ${PBI_DBDIRTYFILE} >/dev/null 2>/dev/null
 			rm_tmpdir
 		fi
@@ -2828,7 +2833,9 @@
 				fi
 
 				# Lets start this hash merge
+				echo "Adding ${_hpbipath} to hash-dir: `date`" >> ${_pbid_log}
 				pbi_add_update_hashdir "${_hpbipath}" >${_redir} 2>${_redir}
+				echo "Finished adding ${_hpbipath} to hash-dir: `date`" >> ${_pbid_log}
 				
 				# Now remove the trigger file
 				rm ${PBI_DBHASHQUEUEDIR}/${_hpbi}



More information about the Commits mailing list