Re: Cemtos 7 : Systemd alternatives ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



You can still run apache's configtest

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/ch-Web_Servers.html

httpd Service Control
With the migration away from SysV init scripts, server administrators should switch to using the apachectl and systemctl commands to control the service, in place of the service command. The following examples are specific to the httpd service. The command:
service httpd graceful
is replaced by
apachectl graceful
The command:
service httpd configtest
is replaced by
apachectl configtest
The systemd unit file for httpd has different behavior from the init script as follows:
A graceful restart is used by default when the service is reloaded.
A graceful stop is used by default when the service is stopped.

Thanks,
Richard

-----Original Message-----
From: centos-bounces@xxxxxxxxxx [mailto:centos-bounces@xxxxxxxxxx] On Behalf Of Jonathan Billings
Sent: Tuesday, July 15, 2014 12:01 PM
To: CentOS mailing list
Subject: Re:  Cemtos 7 : Systemd alternatives ?

On Tue, Jul 15, 2014 at 11:57:10AM -0400, m.roth@xxxxxxxxx wrote:
>
> Lamar Owen wrote:
> > On 07/15/2014 11:33 AM, m.roth@xxxxxxxxx wrote:
> >> This one does bother me. I may not want to restart a production
> >> instance of apache, when all I want it to do is reload the
> >> configuration files, so that one site changes while the others are all
> >> running happily as clams.
> >
> > systemctl reload $unit
> >
> > Documented in the systemctl(1) man page.
> <snip>
> Which contradicts the long post from the guy I was responding to, who said
> it *only* did start, stop, restart....

What I meant is that it doesn't support extra action verbs, such as
'service httpd configtest'.  I didn't mean to indicate that it ONLY
supported start, stop, restart and status.

-- 
Jonathan Billings <billings@xxxxxxxxxx>
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux