[CentOS] systemd override.conf question

Mon Apr 24 22:49:03 UTC 2017
Robert Moskowitz <rgm at htt-consult.com>


On 04/24/2017 07:37 PM, Jonathan Billings wrote:
> 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.
>

thanks