How about checking if the service is running and then reacting based on that. If the service is running then katello-upgrade command will exit and alert the sysadmin that he/she should stop the service. If not, then upgrade can continue.<div>
<div><br></div><div>Thoughts?<br><br><div class="gmail_quote">On Tue, Jul 24, 2012 at 9:27 AM, Jordan OMara <span dir="ltr"><<a href="mailto:jomara@redhat.com" target="_blank">jomara@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">eric filed this bug: <a href="https://bugzilla.redhat.com/show_bug.cgi?id=820280" target="_blank">https://bugzilla.redhat.com/<u></u>show_bug.cgi?id=820280</a><br>

og filed a similar one: <a href="https://bugzilla.redhat.com/show_bug.cgi?id=837866" target="_blank">https://bugzilla.redhat.com/<u></u>show_bug.cgi?id=837866</a><br>
a pull request: <a href="https://github.com/Katello/katello/pull/331" target="_blank">https://github.com/Katello/<u></u>katello/pull/331</a><br>
<br>
However, lzap & msuchy have brought up that this might be poor<br>
behavior or very confusing to a sysadmin and that they would want to<br>
almost always stop services themselves before starting the upgrade<br>
process. I don't have enough sysadmin experience to make a good<br>
decision so I wanted to bring it up to the list.<br>
<br>
tl;dr: katello-upgrade currently fails if you haven't stopped your<br>
services. the pull requests makes the script stop them for you<br>
<br>
my uninformed 2c: the patch is fairly innocuous because you can<br>
decline to have the script stop anything and exit<br>
<br>
DISCUSS<span class="HOEnZb"><font color="#888888"><br>
-- <br>
Jordan O'Mara <jomara at <a href="http://redhat.com" target="_blank">redhat.com</a>><br>
Red Hat Engineering, Raleigh </font></span><br>_______________________________________________<br>
katello-devel mailing list<br>
<a href="mailto:katello-devel@redhat.com">katello-devel@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/katello-devel" target="_blank">https://www.redhat.com/mailman/listinfo/katello-devel</a><br>
<br></blockquote></div><br></div></div>