[Bug 217393] "/etc/rc.d/sendmail restart" doesn't restart the sendmail_msp_queue process

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Feb 27 13:54:53 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217393

            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 at FreeBSD.org
          Reporter: martin at 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.
$ 

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.
$ 

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.

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


More information about the freebsd-bugs mailing list