Re: Apache and systemd

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

 



Hi Tom,

To have Apache start on boot do: systemctl enable apache2

Then a systemctl status apache2 yields something like :

dbc:~ # systemctl status apache2
● apache2.service - The Apache Webserver
   Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2020-06-16 07:33:57 EDT; 2 days ago
..... more stuff omitted ....

Note the "enabled".

Dave.



On 2020-06-18 8:36 a.m., Tom Browder wrote:
On Thu, Jun 18, 2020 at 07:24 David Copeland <david.copeland@xxxxxxxxxx> wrote:
On OpenSuse, I use

systemctl <command> apache2

where <command> is start, stop, status, reload, or whatever (do a "man systemctl")

Thanks, Dave.

But do you add the appropriate systemd files to enable auto start and shutdown of httpd upon reboot?

Manual use is pretty straight forward, but, for me, the service file syntax is not so clear. I'm afraid of getting locked out without easy hands-on access to my remote servers.

Cheers,

-Tom


-- 
David Copeland
JSI Data Systems Limited
613-727-9353
www.jsidata.ca

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux