summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJohn Terpstra <jht@samba.org>2005-07-06 19:21:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:58:17 -0500
commitc379e33da6a9692cf6540a933e1b8a682645b6b1 (patch)
treecee20bbb5fdff1540cdb261b38b85f28f17240b9 /examples
parent38e006fe8bc81c950302cc1e1700075b84eec329 (diff)
downloadsamba-c379e33da6a9692cf6540a933e1b8a682645b6b1.tar.gz
samba-c379e33da6a9692cf6540a933e1b8a682645b6b1.tar.bz2
samba-c379e33da6a9692cf6540a933e1b8a682645b6b1.zip
r8188: Update from Dave Collier-Brown.
(This used to be commit 65cfa2a950e8a16b95715d555a5354cc81f431f1)
Diffstat (limited to 'examples')
-rw-r--r--examples/debugging/solaris-oops.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/examples/debugging/solaris-oops.sh b/examples/debugging/solaris-oops.sh
index 78c72c9508..82c49efdf6 100644
--- a/examples/debugging/solaris-oops.sh
+++ b/examples/debugging/solaris-oops.sh
@@ -1,8 +1,9 @@
#!/bin/sh
#
-# oops -- capture supporting information after a failure
+# solaris_panic_action -- capture supporting information after a failure
#
ProgName=`basename $0`
+LOGDIR=/usr/local/samba/var
main() {
pid=$1
@@ -12,7 +13,9 @@ main() {
say "Usage: $0 pid"
exit 1
fi
- cat <<!
+ cat >>$LOGDIR/log.solaris_panic_action <<!
+
+`date`
State information and vountary core dump for process $pid
Related processes were:
@@ -40,8 +43,8 @@ Directory in use was:
`/usr/bin/pwdx $pid`
-A voluntary core dump was placed in /var/tmp/oops_gcore.$pid
-`gcore -o /var/tmp/oops_gcore $pid`..
+A voluntary core dump was placed in /var/tmp/samba_solaris_panic_action_gcore.$pid
+`gcore -o /var/tmp/samba_solaris_panic_action_gcore $pid`
!
}