>
> After you are able to start it manually, you can edit your systemd service
> file accordingly.


GOOD NEWS ! i can start apache2ctl manually by #/usr/bin/apache2ctl
I get the warning message :
AH00558: apache2: Could not reliably determine the server's fully qualified
domain name, using 127.0.0.1. Set the 'ServerName' directive globally to
suppress this message
But, apache2 is working as i stay localhost.

So, by editing minimal apache2.service :

[Unit]
#Description=The Apache HTTP Server
After=network.target remote-fs.target nss-lookup.target
#Documentation=https://httpd.apache.org/docs/2.4/

[Service]
#Type=forking
#Environment=APACHE_STARTED_BY_SYSTEMD=true
ExecStart=/usr/sbin/apache2ctl
ExecStop=/usr/sbin/apache2ctl graceful-stop
ExecReload=/usr/sbin/apache2ctl graceful
KillMode=mixed
#PrivateTmp=true
Restart=on-abort
TimeoutStartSec=5
[Install]
WantedBy=multi-user.target

#systemctl start apache2 works,
but #systemctl stop apache2 fails and is waiting for something....
So i can't reboot as apache2 is not stopped... :-(

Not perfect, but it is going...

--
Jacques

Reply via email to