[Orca-users] Re: Orca execution management
Sean O'Neill
soneill at oneill.dhs.org
Fri May 24 13:42:03 PDT 2002
At 08:20 PM 5/24/2002 +0000, you wrote:
>Hi guys,
>
>Sorry for my newbie condition but I have to ask.
>
>I have installed orca in 2 of our servers and it is not clear to me
>how I must manage orca execution.
>
>I understand that there are 2 components: orcallator/SE and orca; but
>in the S99orcallator startup script there is mention just to the
>orcallator component. Being so, how I must start orca after a boot?
On my machines, I use the following boottime script
(/etc/rc2.d/S99orcallator). As you showed see, this runs both Orca
components as a non-root user. If you are running it as root, you should
remove the "su -" stuff. On the non-graphing machines, I specifically
delete orcallator.cfg so that the graphing engine doesn't start. I collect
data at regular intervals using rsync over ssh.
Not sure what you mean about file rotation and a monthly graph. Monthly
graphs are part of what Orca generates by default. If you mean you want to
retain a copy of a specific graph at regular intervals, that's just a
crontab job and a cp command. No rocket science there.
#!/bin/sh
prefix=/local/home/perfboy/orca
exec_prefix=${prefix}
bindir=${exec_prefix}/bin
case "$1" in
'start')
if [ -x $bindir/start_orcallator ]; then
umask 022
su - perfboy -c "$bindir/start_orcallator" 1>/dev/null 2>&1
else
echo "$0: $bindir/start_orcallator does not exist or is
not executable."
fi
if [ -f $bindir/orca -a -f $prefix/lib/orcallator.cfg ]; then
rm -rf $prefix/lib/orcallator.cfg.lock
nohup $bindir/orca $prefix/lib/orcallator.cfg >/dev/null
2>&1 &
fi
;;
'startorcagraph')
if [ -f $bindir/orca -a -f $prefix/lib/orcallator.cfg ]; then
rm -rf $prefix/lib/orcallator.cfg.lock
nohup $bindir/orca $prefix/lib/orcallator.cfg >/dev/null
2>&1 &
#$bindir/orca $prefix/lib/orcallator.cfg
fi
;;
'stoporcagraph')
pkill orca
;;
'stop')
if [ -x $bindir/stop_orcallator ]; then
su - perfboy -c "$bindir/stop_orcallator" 1>/dev/null 2>&1
fi
pkill orca
;;
*)
echo "Usage: $0 { start | stop | startorcagraph | stoporcagraph }"
exit 1
;;
esac
exit 0
--
........................................................
......... ..- -. .. -..- .-. ..- .-.. . ... ............
.-- .. -. -... .-.. --- .-- ... -.. .-. --- --- .-.. ...
Sean O'Neill
More information about the Orca-users
mailing list