There is no apache2.service file on ubuntu 15.10. I want to restart apache2 if the apache2 process gets killed. For most services I can add a


to the *.service file

If I enable apache2 as a systemd service I get:

systemctl enable apache2
apache2.service is not a native service, redirecting to systemd-sysv-install
Executing /lib/systemd/systemd-sysv-install enable apache2

So it's using the System V backward compatibility. Do I have to replace the /etc/init.d/apache2 script and create a "native systemd service" or is there any other solution?


You should be able to run sudo systemctl edit apache2.service and enter custom overrides in the file, as follows:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.