Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Feb 2017 13:54:53 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 217393] "/etc/rc.d/sendmail restart" doesn't restart the sendmail_msp_queue process
Message-ID:  <bug-217393-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217393

            Bug ID: 217393
           Summary: "/etc/rc.d/sendmail restart" doesn't restart the
                    sendmail_msp_queue process
           Product: Base System
           Version: 10.3-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: martin@lispworks.com

Running "/etc/rc.d/sendmail restart" with the default config (i.e. nothing
sendmail-related in /etc/rc.conf) restarts sendmail_submit but not
sendmail_msp_queue (the warning about sendmail_enable is expected):

$ /etc/rc.d/sendmail restart
Cannot 'restart' sendmail. Set sendmail_enable to YES in /etc/rc.conf or use
'onerestart' instead of 'restart'.
Stopping sendmail_submit.
Waiting for PIDS: 68913.
Starting sendmail_submit.
$=20

Contrast this with stop and start:
$ /etc/rc.d/sendmail stop
Stopping sendmail.
Waiting for PIDS: 69470.
sendmail_submit not running? (check /var/run/sendmail.pid).
Stopping sendmail_msp_queue.
Waiting for PIDS: 68855.
$ /etc/rc.d/sendmail start
Cannot 'start' sendmail. Set sendmail_enable to YES in /etc/rc.conf or use
'onestart' instead of 'start'.
Starting sendmail_submit.
Starting sendmail_msp_queue.
$=20

I think the problem is that the variable _rc_restart_done in /etc/rc.subr is
set to true when restarting sendmail_submit and thus prevents restart of
sendmail_msp_queue.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-217393-8>