| Anonymous | Login | 2026-03-21 16:10 CET |
| Main | My View | View Issues |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | |||||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
| 0004518 | [setoolkit] regular use | block | always | 2010-08-10 21:00 | 2019-07-24 08:11 | |||||||
| Reporter | hudesd | View Status | public | |||||||||
| Assigned To | ||||||||||||
| Priority | normal | Resolution | open | |||||||||
| Status | new | |||||||||||
| Summary | 0004518: global zone orcallator won't start if child zone orcallator already running | |||||||||||
| Description |
The global zone sees processes in all child zones as well as itself. The start_orcallator script is using /usr/ucb/ps but that's not appropriate for Solaris 10 it doesn't know about zones. Use /usr/bin/ps with the -z flag and the value from zonename ("/usr/bin/ps -eafz `zonename`) and you will only see current zone processes. Here is another approach which looks for the orcallator.pid file: # diff -u start_orcallator.csw start_orcallator --- start_orcallator.csw Wed Nov 25 07:04:57 2009 +++ start_orcallator Wed Feb 10 16:45:01 2010 @@ -112,11 +112,14 @@ export COMPRESSOR OUTDIR WEB_LOG WEB_SERVER WEB_SERVER_SECURE # Check if orcallator is already running. -pids=`/usr/ucb/ps auxww | $AWK '/orcallator.se/ && !/awk/ {print $2}'` -if test "$pids" != ""; then +#pids=`/usr/ucb/ps auxww | $AWK '/orcallator.se/ && !/awk/ {print $2}'` +if test -f $OUTDIR/orcallator.pid then + $pid=`cat $OUTDIR/orcallator.pid` +if test `/usr/bin/ps -p $pid|wc -l` -gt 1 then echo "$0: orcallator already running." 1>&2 exit 1 fi +fi # echo "Writing data into $OUTDIR/" if test "$WEB_LOG"; then |
|||||||||||
| Additional Information | ||||||||||||
| Tags | No tags attached. | |||||||||||
| Attached Files |
|
|||||||||||
|
|
||||||||||||
| Copyright © 2000 - 2008 Mantis Group |