Re: Need help with setting up systemd for Apache on Debian 10

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

 



On Sun, Aug 23, 2020 at 12:19:15PM -0500, Tom Browder wrote:
> There is no official Apache systemd setup for Apache from source, and
> I didn't get any help from users there. I tried to mimic a good
> solution by first installing Apache with the Debian package and
> finding all the systemd files with "httpd" or "apache" in the name.
> That resulted in the following list:
> 
>     /etc/systemd/system/multi-user.target.wants/apache2.service

  That a symlink causing apache httpd to be started on boot.

>     /run/systemd/units/invocation:apache2.service

  Internal stuff, ignore.

>     /usr/lib/systemd/system/apache2.service

  This is the only file that matters.

>     /var/lib/systemd/deb-systemd-helper-enabled/apache2.service.dsh-also
>     /var/lib/systemd/deb-systemd-helper-enabled/multi-user.target.wants/apache2.service

  This is some Debian stuff.

> The contents of the "apache2.service" file are:

  That's one way correct way to do it. To see other, check httpd.service
as shipped by Fedora: https://src.fedoraproject.org/rpms/httpd/tree/master

 
> I assume the data are correct, and I'm pretty sure there is some
> fancy, automated sysstemctl way to get it all working.  I would
> greatly appreciate some guidance as to how to install the files
> correctly.

  First of all, you got correct installation by installing distribution
package.  You can stop there.
  If you want to do the work, anyway, do the following:
  – read man systemd.unit, systemd.service, maybe some systemd tutorials
  – devise your own service unit file for apache httd; you have two
    examples already
  – in your package, install the unit into /usr/lib/systemd/system/


-- 
Tomasz Torcz                        To co nierealne – tutaj jest normalne.
tomek@xxxxxxxxxxxxxx              Ziomale na życie mają tu patenty specjalne.

_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux