diff --git a/modules/scripts/files/lock-wrapper.sh b/modules/scripts/files/lock-wrapper.sh index 0a7cfe5..f990f63 100755 --- a/modules/scripts/files/lock-wrapper.sh +++ b/modules/scripts/files/lock-wrapper.sh @@ -23,7 +23,7 @@ if ! mkdir "$LOCKDIR"; then if [ -n "$PID" ] && /bin/ps $PID > /dev/null then echo "$PID is still running" - /bin/ps $PID + /bin/ps -o user,pid,start,time,comm $PID exit 1; else echo "$LOCKDIR exists but $PID is dead"
I would like to change lock-wrapper on our hosts to dump out more info about when the proc that is locking it got started, etc.
need 2 +1's
-sv
On Fri, 08 Apr 2011 12:55:25 -0400 seth vidal skvidal@fedoraproject.org wrote:
diff --git a/modules/scripts/files/lock-wrapper.sh b/modules/scripts/files/lock-wrapper.sh index 0a7cfe5..f990f63 100755 --- a/modules/scripts/files/lock-wrapper.sh +++ b/modules/scripts/files/lock-wrapper.sh @@ -23,7 +23,7 @@ if ! mkdir "$LOCKDIR"; then if [ -n "$PID" ] && /bin/ps $PID > /dev/null then echo "$PID is still running"
/bin/ps $PID
else echo "$LOCKDIR exists but $PID is dead"/bin/ps -o user,pid,start,time,comm $PID exit 1;
I would like to change lock-wrapper on our hosts to dump out more info about when the proc that is locking it got started, etc.
need 2 +1's
+1 here. I think the extra info could be handy.
kevin
+1, looks simple enough.
On Fri, Apr 8, 2011 at 12:59 PM, Kevin Fenzi kevin@scrye.com wrote:
On Fri, 08 Apr 2011 12:55:25 -0400 seth vidal skvidal@fedoraproject.org wrote:
diff --git a/modules/scripts/files/lock-wrapper.sh b/modules/scripts/files/lock-wrapper.sh index 0a7cfe5..f990f63 100755 --- a/modules/scripts/files/lock-wrapper.sh +++ b/modules/scripts/files/lock-wrapper.sh @@ -23,7 +23,7 @@ if ! mkdir "$LOCKDIR"; then if [ -n "$PID" ] && /bin/ps $PID > /dev/null then echo "$PID is still running"
/bin/ps $PID
else echo "$LOCKDIR exists but $PID is dead"/bin/ps -o user,pid,start,time,comm $PID exit 1;
I would like to change lock-wrapper on our hosts to dump out more info about when the proc that is locking it got started, etc.
need 2 +1's
+1 here. I think the extra info could be handy.
kevin
infrastructure mailing list infrastructure@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/infrastructure
infrastructure@lists.fedoraproject.org