Re: Systemd: Error when replacing postfix LSB init with postfix.service on Debian 8 (jessie)
On Sun, Aug 20, 2017 at 10:17 AM, Nicolas George <george@nsup.org> wrote:
> Le tridi 3 fructidor, an CCXXV, Tom Browder a écrit :
>> > # 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
>
> Looks like Postfix is running correctly.
>
> Note that "systemctl start" is transient. If you want to make it start
> automatically at boot, you have to use "systemctl enable".
Okay, I did:
# mv /etc/init.d/postfix /etc/init.d/postfix.orig
# cp postfix.service /etc/systemd
# systemctl enable postfix
# systemctl daemon-reload
# systemctl stop postfix
# systemctl start postfix
# systemctl status postfix
* postfix.service - Postfix Mail Transport Agent
Loaded: loaded (/etc/systemd/system/postfix.service; enabled)
Active: active (exited) since Sun 2017-08-20 11:25:02 CDT; 1min 37s ago
Process: 524 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
Main PID: 524 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/postfix.service
And all looks good!
Thanks, Nicolas.
Best regards,
-Tom
Reply to: