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.copel...@jsidata.ca <mailto:david.copel...@jsidata.ca>> 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

Reply via email to