Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

fail to stop NES4sp4

2 views
Skip to first unread message

joe lipson

unread,
Oct 26, 2000, 3:00:00 AM10/26/00
to
I have this problem too, and judging by previous posts so do many other
users.

I wrote a script to kill iplanet processes that you might find useful...

I find that I have to run it twice to make sure all servers are dead. If you
have any improvements or comments I'd be happy to hear them.

Joe


#!/pkgs/bin/bash


# this script will kill all iplanet proceses
# being run by nobody

if [ "$UID" != "0" ]; then
echo "you must run this script as root"
exit;
fi


for i in `ps -u nobody -o pid,fname | /usr/xpg4/bin/grep -E
"ns-httpd|uxwdog" | sed -e 's/ \{1,\}/:/g'` ;
do
pid=`echo $i | sed -e 's/^://' | cut -d':' -f1`;
kill -9 $pid ;
echo "killing $pid" ;
done

for i in `ls /usr/netscape/server4/ | grep https-` ; do
if [ -e /usr/netscape/server4/$i/logs/wdnotify ] ; then
rm /usr/netscape/server4/$i/logs/wdnotify;
echo removing /usr/netscape/server4/$i/logs/wdnotify
fi
done
"Harmony Wong" <harmon...@hongkong.com> wrote in message
news:8bn6dn$90...@secnews.netscape.com...
> Hi,
>
> Our system is using NES4sp4 on Solaris 2.6, with only ssjs is enabled.
> (Servlet and JSP are disabled) The system use the livewire to connect to
> local Oracle 8.0.5. We have write a script to stop the web server every
> early morning, 4:00am. However, most of the time, the stop command of the
> /https-xxx/ fail to stop the web server, and return "server has not
> response". So, We have to run a script to kill the unxwdog and httpd
process
> after the stop command is called for 2 minutes.
>
> Any one has idea or got the same situation? Thanks.
>
> Regards,
> Harmony
>
>

0 new messages