[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Systemd: Error when replacing postfix LSB init with postfix.service on Debian 8 (jessie)



On Sun, Aug 20, 2017 at 9:42 AM, Tom Browder <tom.browder@gmail.com> wrote:
> I got a postfix.service file from a postfix developer and installed it in
> /etc/systemd/system as the docs mention.
>
> I then moved the /etc/init.d/postfix file away, reloaded the systemd daemon,
> and did:
>
>   # systemctl start postfix
>   # systemctl status postfix
>
> and got several lines basically saying posfix.service was disabled.

The exact message is:

* postfix.service - Postfix Mail Transport Agent
   Loaded: loaded (/etc/systemd/system/postfix.service; disabled)
   Active: active (running) since Fri 2017-08-18 04:51:33 CDT; 2 days ago
   CGroup: /system.slice/postfix.service
           |- 1505 /usr/lib/postfix/master
           |- 9515 pickup -l -t unix -u -c
           `-19868 qmgr -l -t unix -u

The contents of the postfix.service file are;

[Unit]
Description=Postfix Mail Transport Agent
Conflicts=sendmail.service exim4.service
ConditionPathExists=/etc/postfix/main.cf

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/true
ExecReload=/bin/true

[Install]
WantedBy=multi-user.target


Thanks.

-Tom
ju


Reply to: