[CentOS] systemd override.conf question

Mon Apr 24 17:37:12 UTC 2017
Jonathan Billings <billings at negate.org>

On Mon, Apr 24, 2017 at 06:35:38PM +0200, Robert Moskowitz wrote:
> Does the override.conf file need the section headers?
> 
> For example:
> 
> # cat /etc/systemd/system/postfix.service.d/override.conf
> [Unit]
> After=syslog.target network.target time-sync.target
> 
> Will it work with just the After line, or is the [Unit] line needed to
> control the merge function.

It needs to know what section (such as [Unit], [Service] and
[Install]) the configuration option is in, so yes, it needs the [Unit]
line. 

-- 
Jonathan Billings <billings at negate.org>