[Bug 1823724] Re: modified apache2.service overwritten on package update without notification

Andreas Hasenack andreas at canonical.com
Wed Apr 10 12:38:33 UTC 2019


You shouldn't modify the /lib/systemd/service/apache2.service file
directly, but use an override instead.

For example, you can do "sudo systemctl edit apache2.service" and add
your modifications in the editor that will open. This will create an
override file in /etc/systemd/system/ for apache2, and a package upgrade
won't change that.

"Example 2" at
https://www.freedesktop.org/software/systemd/man/systemd.unit.html
actually mentions your case, of setting PrivateTmp

I'll mark this bug as invalid, but if you think that's not the case,
feel free to reopen it with a comment and reasoning.

** Changed in: apache2 (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to apache2 in Ubuntu.
https://bugs.launchpad.net/bugs/1823724

Title:
  modified apache2.service overwritten on package update without
  notification

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1823724/+subscriptions



More information about the Ubuntu-server-bugs mailing list