<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<div class="moz-cite-prefix">On 07/30/2014 12:34 PM, Reindl Harald
wrote:<br>
</div>
<blockquote cite="mid:53D8E66A.1000307@thelounge.net" type="cite">
<pre wrap=""><b class="moz-txt-star"><span class="moz-txt-tag">*</span>how<span class="moz-txt-tag">*</span></b> should that both help in calling "apachectl -t" <b class="moz-txt-star"><span class="moz-txt-tag">*</span>before<span class="moz-txt-tag">*</span></b> stop the
service and in case of a error-repsonse keep it running?</pre>
</blockquote>
<br>
ExecStartPre= takes care of the startup check as in the usecase when
the unit is not running and you initially configured the Apache
daemon <br>
<br>
Adding ExecStop= "before" actual ExecStop= line to stop the daemon
takes care of preventing you from restarting you if you made
configuration changes while the daemon/services was running should
not continue with the stop process if the ExecStop command fails. <br>
<br>
Anyway beside that point daemon,services that actual come with
configuration file syntax checkers like apache does ( maybe in what
20 or so range ) , are few and far between let alone those
configuration syntax checker that actually exist out there fail
properly if they do...<br>
<br>
JBG<br>
</body>
</html>