[systemd-devel] Support for pre-restart check
"Jóhann B. Guðmundsson"
johannbg at gmail.com
Wed Jul 30 06:04:42 PDT 2014
On 07/30/2014 12:34 PM, Reindl Harald wrote:
> *how* should that both help in calling "apachectl -t"*before* stop the
> service and in case of a error-repsonse keep it running?
ExecStartPre= takes care of the startup check as in the usecase when the
unit is not running and you initially configured the Apache daemon
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.
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...
JBG
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20140730/f1c82dbf/attachment.html>
More information about the systemd-devel
mailing list