postfix/postfix-script[6735] error: unknown command: 'quiet-quick-start'

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

postfix/postfix-script[6735] error: unknown command: 'quiet-quick-start'

xiedeacc
hi all, use systemd start postfix faild, here is detail:

my os is ubuntu-gnome 16.04.03, first I use apt install postfix and other
software, for some reason, I reinstalled it by complied source code, version
was postfix-3.2.2, installed successfully, but when use systemctl start
postfix, it failed

postfix.service - LSB: Postfix Mail Transport Agent
   Loaded: loaded (/etc/init.d/postfix; bad; vendor preset: enabled)
  Drop-In: /run/systemd/generator/postfix.service.d
           └─50-postfix-$mail-transport-agent.conf
   Active: failed (Result: exit-code) since 三 2017-09-13 09:13:09 CST; 8s
ago
     Docs: man:systemd-sysv-generator(8)
  Process: 6642 ExecStart=/etc/init.d/postfix start (code=exited,
status=1/FAILURE)

9月 13 09:13:07 xiedeacc.com systemd[1]: Starting LSB: Postfix Mail Transport
Agent...
9月 13 09:13:07 xiedeacc.com postfix[6642]:  * Starting Postfix Mail
Transport Agent postfix
9月 13 09:13:08 xiedeacc.com postfix/postfix-script[6736]: fatal: usage:
postfix start (or stop, reload, abort, flush, check, status,
set-permissions, upgrade-configuration)
9月 13 09:13:09 xiedeacc.com postfix[6642]:    ...fail!
9月 13 09:13:09 xiedeacc.com systemd[1]: postfix.service: Control process
exited, code=exited status=1
9月 13 09:13:09 xiedeacc.com systemd[1]: Failed to start LSB: Postfix Mail
Transport Agent.
9月 13 09:13:09 xiedeacc.com systemd[1]: postfix.service: Unit entered failed
state.
9月 13 09:13:09 xiedeacc.com systemd[1]: postfix.service: Failed with result
'exit-code'.


here is /var/log/mail.log

postfix/postfix-script[6735] error: unknown command: 'quiet-quick-start'
postfix/postfix-script[6736] fatal: usage: postfix start (or stop, reload,
abort, flush, check, status, set-permissions, upgrade-configuration)




--
Sent from: http://postfix.1071664.n5.nabble.com/Postfix-Users-f2.html
Reply | Threaded
Open this post in threaded view
|

Re: postfix/postfix-script[6735] error: unknown command: 'quiet-quick-start'

Viktor Dukhovni
On Tue, Sep 12, 2017 at 07:32:03PM -0700, xiedeacc wrote:

> hi all, use systemd start postfix faild, here is detail:
>
> postfix/postfix-script[6735] error: unknown command: 'quiet-quick-start'
> postfix/postfix-script[6736] fatal: usage: postfix start (or stop, reload,
> abort, flush, check, status, set-permissions, upgrade-configuration)

This is quite clear.  The upstream postfix.org source distribution
does not have a "postfix quiet-quick-start" command.  See:

    http://www.postfix.org/postfix.8.html

That particular command must be an Ubuntu or Debian extension for
systemd.  If you build your Postfix package, you need to provide
your own systemd configuration that matches that package.  The
upstream Postfix has no specific systemd support, that's up to the
O/S distribution package maintainers.

--
        Viktor.
Reply | Threaded
Open this post in threaded view
|

Re: postfix/postfix-script[6735] error: unknown command: 'quiet-quick-start'

xiedeacc
I know, but I remove quiet-quick-start in /etc/init.d/postfix, still failed,
but now log was:

Sep 13 10:47:54 xiedeacc postmulti[7989]: fatal: Specify exactly one of
'-e', '-l', '-p', '-x'
Sep 13 10:48:33 xiedeacc postfix/postfix-script[8095]: error: unknown
command: ''
Sep 13 10:48:33 xiedeacc postfix/postfix-script[8096]: fatal: usage: postfix
start (or stop, reload, abort, flush, check, status, set-permissions,
upgrade-configuration)
Sep 13 10:48:45 xiedeacc postfix/postfix-script[8207]: error: unknown
command: ''
Sep 13 10:48:45 xiedeacc postfix/postfix-script[8208]: fatal: usage: postfix
start (or stop, reload, abort, flush, check, status, set-permissions,
upgrade-configuration)

I know was postmulti arguments problem, but I want to know is: is this
postfix version difference or ubuntu make some change, or
/etc/init.d/postfix has some special?



--
Sent from: http://postfix.1071664.n5.nabble.com/Postfix-Users-f2.html
Reply | Threaded
Open this post in threaded view
|

Re: postfix/postfix-script[6735] error: unknown command: 'quiet-quick-start'

Christian Kivalo



>I know was postmulti arguments problem, but I want to know is: is this
>postfix version difference or ubuntu make some change, or
>/etc/init.d/postfix has some special?
The Debian / Ubuntu start script probably expects some distribution specific configuration to be in place.

Your best bet is to remove the existing init script for postfix and create a systemd unit for your needs.
--
Christian Kivalo
Reply | Threaded
Open this post in threaded view
|

Re: postfix/postfix-script[6735] error: unknown command: 'quiet-quick-start'

xiedeacc
you're right, I'm learning to write a systemd style script, but not familiar
with postmulti



--
Sent from: http://postfix.1071664.n5.nabble.com/Postfix-Users-f2.html
Reply | Threaded
Open this post in threaded view
|

Re: postfix/postfix-script[6735] error: unknown command: 'quiet-quick-start'

Viktor Dukhovni
On Tue, Sep 12, 2017 at 09:57:17PM -0700, xiedeacc wrote:

> you're right, I'm learning to write a systemd style script, but not familiar
> with postmulti

Start scripts don't need to know anything about postmulti.  The
whole point of the design is that "postfix start" starts all
the relevant Postfix instances.

Fancy peeking under the hood is only needed if the init system
wants to keep track of all the Postfix instances after they're
started.  This is rarely needed, Postfix does not have a habit of
crashing or exiting silently, ...  Proper monitoring detects any
downtime without any need for init integration.  Indeed if Postfix
was crashing, it is not clear that you'd want the init system
to take any automated action.

Just go with a SysV init.d style script if still possible with
systemd.

--
        Viktor.