3 # solaris_panic_action -- capture supporting information after a failure
6 LOGDIR
=/usr
/local
/samba
/var
12 say
"$ProgName error: you must supply a pid"
16 cat >>$LOGDIR/log.solaris_panic_action
<<!
19 State information and vountary core dump
for process
$pid
21 Related processes were
:
25 `/usr/bin/pstack $pid`
28 `/usr/bin/pflags $pid`
36 Signal-handler settings were
:
39 Files and devices
in use were
:
40 `/usr/bin/pfiles $pid`
46 A voluntary core dump was placed
in /var
/tmp
/samba_solaris_panic_action_gcore.
$pid
47 `gcore -o /var/tmp/samba_solaris_panic_action_gcore $pid`