[Pm-utils] [PATCH 1/2] If PM_DEBUG = true, then set -x in functions.

Victor Lowther victor.lowther at gmail.com
Fri Feb 8 18:07:57 PST 2008


This will store trace logs in the logfile.
---
 pm/functions.in |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/pm/functions.in b/pm/functions.in
index a9f0c1b..e74a80e 100644
--- a/pm/functions.in
+++ b/pm/functions.in
@@ -8,6 +8,8 @@
 # PM_CMDLINE
 # RESUME_MODULES
 #
+# for great debugging!
+[ "${PM_DEBUG}" = "true" ] && set -x
 set -a
 PM_UTILS_LIBDIR="@PM-UTILS-LIBDIR@"
 PM_UTILS_ETCDIR="@PM-UTILS-SYSCONFDIR@"
-- 
1.5.3.8



More information about the Pm-utils mailing list