<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: /sbin/init.d/sysedge stop flakey in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sbin-init-d-sysedge-stop-flakey/m-p/3234294#M172686</link>
    <description>I really don't care who wrote it; I stand by my original comments. You might try manually killing the process by sending various signals. That would let you send a smaller set of escalating kills. Kill -9 is almost always a bad idea.&lt;BR /&gt;You at least need to set a sensible return code when the pid is not found.&lt;BR /&gt;</description>
    <pubDate>Tue, 30 Mar 2004 15:45:01 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2004-03-30T15:45:01Z</dc:date>
    <item>
      <title>/sbin/init.d/sysedge stop flakey</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sbin-init-d-sysedge-stop-flakey/m-p/3234291#M172683</link>
      <description>I have trying to stop and start sysedge on my hp 11.00 server, this could have been going on for a while, but i only now really noticed it.&lt;BR /&gt;It is flaky at best, sometimes it works sometimes no.&lt;BR /&gt;&lt;BR /&gt;I run it as root&lt;BR /&gt;and all I get back is...&lt;BR /&gt;&lt;BR /&gt;# /sbin/init.d/sysedge stop&lt;BR /&gt;Killed&lt;BR /&gt;# ps -ef |grep sysedge&lt;BR /&gt;    root  7469     1  0 11:54:57 ?         0:00 /opt/EMPsysedge/bin/sysedge -b -p 161 -l /etc/sysedge.l&lt;BR /&gt;&lt;BR /&gt;From looking at the /sbin/init.d/sysedge file it should say...&lt;BR /&gt;&lt;BR /&gt;SystemEDGE stopped&lt;BR /&gt;&lt;BR /&gt;Is there something I am missing?&lt;BR /&gt;I really don't understand the...&lt;BR /&gt;if kill -9&lt;BR /&gt;Is it killing the process? Where does it get Killed from?&lt;BR /&gt;&lt;BR /&gt;...taken from /sbin/init.d/sysedge...&lt;BR /&gt;'stop')&lt;BR /&gt;     #&lt;BR /&gt;     # Determine PID of process(es) to stop&lt;BR /&gt;     #&lt;BR /&gt;     MYPID=`ps -ef | grep sysedge | grep -v grep | awk '{print $2}'`&lt;BR /&gt;     if [ "X$MYPID" != "X" ]; then&lt;BR /&gt;        if kill -9 $MYPID; then&lt;BR /&gt;          echo "SystemEDGE stopped"&lt;BR /&gt;        else&lt;BR /&gt;          set_return&lt;BR /&gt;          echo "Unable to stop SystemEDGE"&lt;BR /&gt;        fi&lt;BR /&gt;     fi&lt;BR /&gt;     ;;&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Mar 2004 14:59:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sbin-init-d-sysedge-stop-flakey/m-p/3234291#M172683</guid>
      <dc:creator>Ratzie</dc:creator>
      <dc:date>2004-03-30T14:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: /sbin/init.d/sysedge stop flakey</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sbin-init-d-sysedge-stop-flakey/m-p/3234292#M172684</link>
      <description>First of all, there is a big hole in your logic. If the pid is not found then you exit in an indeterminate state. Secondly, kill -9 should only be used as a weapon of last resort because it does not allow the process to do any cleanup (e.g. remove temp files, clean up shared memory and/or semaphores). You should first try a kill -15 then a -1, -2, -3, then probably -11, and finally -9. Do this between each of the kill's&lt;BR /&gt;&lt;BR /&gt;kill -0 ${PID}&lt;BR /&gt;STAT=${?}&lt;BR /&gt;if [[ ${STAT} -eq 0 ]]&lt;BR /&gt;then&lt;BR /&gt;  echo "Still a valid PID; kill some more"&lt;BR /&gt;else&lt;BR /&gt;  echo "Process gone"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Mar 2004 15:37:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sbin-init-d-sysedge-stop-flakey/m-p/3234292#M172684</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-03-30T15:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: /sbin/init.d/sysedge stop flakey</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sbin-init-d-sysedge-stop-flakey/m-p/3234293#M172685</link>
      <description>The funny thing is that I did not create this script, this what sysedge sent.&lt;BR /&gt;&lt;BR /&gt;I was wondering if I need to modify it?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Mar 2004 15:40:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sbin-init-d-sysedge-stop-flakey/m-p/3234293#M172685</guid>
      <dc:creator>Ratzie</dc:creator>
      <dc:date>2004-03-30T15:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: /sbin/init.d/sysedge stop flakey</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sbin-init-d-sysedge-stop-flakey/m-p/3234294#M172686</link>
      <description>I really don't care who wrote it; I stand by my original comments. You might try manually killing the process by sending various signals. That would let you send a smaller set of escalating kills. Kill -9 is almost always a bad idea.&lt;BR /&gt;You at least need to set a sensible return code when the pid is not found.&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Mar 2004 15:45:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sbin-init-d-sysedge-stop-flakey/m-p/3234294#M172686</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-03-30T15:45:01Z</dc:date>
    </item>
  </channel>
</rss>

