<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 07/24/2012 09:42 AM, Jordan OMara wrote:
    <blockquote cite="mid:20120724134253.GH12706@redhat.com" type="cite">On
      24/07/12 09:36 -0400, Sam Kottler wrote:
      <br>
      <blockquote type="cite">How about checking if the service is
        running and then reacting based on
        <br>
        that. If the service is running then katello-upgrade command
        will exit and
        <br>
        alert the sysadmin that he/she should stop the service. If not,
        then
        <br>
        upgrade can continue.
        <br>
        <br>
        Thoughts?
        <br>
        <br>
      </blockquote>
      <br>
      This is exactly the current (pre-pull request) behavior
      <br>
      <br>
      The patched behavior is to check, notify and then ask if they want
      the
      <br>
      script to stop the services for them. If they select N, it exits
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
katello-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:katello-devel@redhat.com">katello-devel@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/katello-devel">https://www.redhat.com/mailman/listinfo/katello-devel</a></pre>
    </blockquote>
    I wasn't a big fan of the behaviour (actually i thought it stunk).  
    I like the script asking to stop the services and doing it for you,
    but if we don't like that I would at least ask for the following:<br>
    <br>
    a)  Have the script print out ALL services that are still running. 
    Currently it would just print out one until you stopped that one,
    and then would print out the 2nd, etc...   When you have 5+ init
    scripts this is extremely annoying.<br>
    <br>
    b)  Have the script print out the commands to stop the running
    services.  Something like:<br>
    <br>
    The following services are running and need to be stopped:  
    tomcat6  katello-jobs<br>
    Please run the following commands to stop them:<br>
         service tomcat6 stop<br>
         service katello-jobs stop<br>
    <br>
    <br>
    To me that would go a long way to fixing the annoyances without
    having to have the script reliably stop all the services.<br>
    <br>
    -Justin<br>
  </body>
</html>