IMHO I would think they both work for backwards compatibility and over time "service postfix reload" will eventually be depreciated and no longer be a valid command.
I expect that to take years. -ALF -Angelo Fazzina Operating Systems Programmer / Analyst University of Connecticut, UITS, SSG, Server Systems 860-486-9075 -----Original Message----- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of Julian Kippels Sent: Thursday, August 10, 2017 1:35 PM To: Michael Fox <n...@mefox.org> Cc: postfix-users@postfix.org Subject: Re: reloading postfix with systemd Am Thu, 10 Aug 2017 10:19:25 -0700 schrieb "Michael Fox" <n...@mefox.org>: > In v16.04 LTS, Ubuntu has switched to systemd. > > "postfix reload" still seems to work just fine. > But I wonder if I should be using "systemctl reload postfix" instead. > > Which method is preferred on systems that use systemd? > And if either method works, are there differences or reasons to > prefer one over the other? > > Thanks, > Michael > > Well at least in Redhat, if you do systemctl reload postfix it just executes postfix reload internally. So it makes absolutely no difference. # cat /usr/lib/systemd/system/postfix.service [Unit] Description=Postfix Mail Transport Agent After=syslog.target network.target Conflicts=sendmail.service exim.service [Service] Type=forking PIDFile=/var/spool/postfix/pid/master.pid EnvironmentFile=-/etc/sysconfig/network ExecStartPre=-/usr/libexec/postfix/aliasesdb ExecStartPre=-/usr/libexec/postfix/chroot-update ExecStart=/usr/sbin/postfix start ExecReload=/usr/sbin/postfix reload ExecStop=/usr/sbin/postfix stop [Install] WantedBy=multi-user.target