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 Bugs, which is subscribed to 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 -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
