Why can't apache access files in /tmp?

Colin Watson cjwatson at ubuntu.com
Wed Oct 31 14:22:46 UTC 2018


On Wed, Oct 31, 2018 at 01:51:07PM +0100, Tom H wrote:
> Is this on 16.04? It doesn't have
> "/lib/systemd/system/apache2.service" by default; it only has
> "/lib/systemd/system/apache2.service.d/apache2-systemd.conf" to
> override the sysv-generator-created service unit. Are you sure that
> you didn't create it?

Both these files exist in the shipped package on 18.04.  (It seems weird
to ship both rather than just fold the override into the main unit file,
but maybe there's some reason for it.)

> IIRC, there's an exception for ExecStart
> 
> To override
> 
> [Service]
> ExecStart=/sbin/<daemon> -optionX
> 
> the drop-in'll have to be
> 
> [Service]
> ExecStart=
> ExecStart=/sbin/<daemon> -optionY

This is true for any directive that can be specified more than once to
accumulate a list; the relevant systemd.* manual pages document the
directives for which this is the case.

-- 
Colin Watson                                       [cjwatson at ubuntu.com]




More information about the ubuntu-users mailing list