OpenCSW Bug Tracker


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 pdf file icon e33.pdf [^] (26,808 bytes) 2019-07-24 08:04
pdf file icon lim.pdf [^] (23,264 bytes) 2019-07-24 08:11

- Relationships

-  Notes
(0008192)
hudesd (reporter)
2010-08-10 23:13

corrected patch:

# diff -wu start_orcallator.csw start_orcallator
--- start_orcallator.csw Wed Nov 25 07:04:57 2009
+++ start_orcallator Tue Aug 10 17:11:08 2010
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/bash

 # This script runs orcallator.se with the proper options for your site.

@@ -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


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker