Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Aug 2021 18:14:26 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 258011] mail/opendkim does not restart properly with "service -R"
Message-ID:  <bug-258011-7788@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 258011
           Summary: mail/opendkim does not restart properly with "service
                    -R"
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: ml@netfence.it
                CC: freebsd-ports@dan.me.uk
             Flags: maintainer-feedback?(freebsd-ports@dan.me.uk)
                CC: freebsd-ports@dan.me.uk

When issuing "service -R", opendkim stops, but does not restart.
In syslog I see:
opendkim[...]: socket cleanup failed: Permission denied
"service milter-opendkim restart" does the job.

I tried debugging this, but so far I'm not able to see where something might
lie.

This is no big trouble, but one must remember to start opendkim manually af=
ter
restarting everything else.



Log when issuing "service -R":

/usr/sbin/service: DEBUG: checkyesno: apache24_configcheck_disable is set to
NO.
Stopping apache24.
/usr/sbin/service: DEBUG: run_rc_command: doit: kill -TERM 81005
Waiting for PIDS: 81005.
/usr/sbin/service: DEBUG: Sourcing /usr/local/etc/rc.conf.d/clamav_freshclam
/usr/sbin/service: DEBUG: Sourcing /usr/local/etc/rc.conf.d/clamav_freshclam
Stopping clamav_freshclam.
/usr/sbin/service: DEBUG: run_rc_command: doit: su -m mailnull -c 'sh -c "k=
ill
-TERM 79370"'
Waiting for PIDS: 79370.
/usr/sbin/service: DEBUG: Sourcing /usr/local/etc/rc.conf.d/clamav_clamd
/usr/sbin/service: DEBUG: Sourcing /usr/local/etc/rc.conf.d/clamav_clamd
Stopping clamav_clamd.
/usr/sbin/service: DEBUG: run_rc_command: doit: su -m mailnull -c 'sh -c "k=
ill
-TERM 76373"'
Waiting for PIDS: 76373.
/usr/sbin/service: DEBUG: Sourcing /usr/local/etc/rc.conf.d/cyrus_imapd
/usr/sbin/service: DEBUG: Sourcing /usr/local/etc/rc.conf.d/cyrus_imapd
Stopping cyrus_imapd.
/usr/sbin/service: DEBUG: run_rc_command: doit: kill -TERM 72343
Waiting for PIDS: 72343.
/usr/sbin/service: DEBUG: run_rc_command: stop_postcmd: cyrus_imapd_poststop
Stopping milteropendkim.
/usr/sbin/service: DEBUG: run_rc_command: doit: kill -TERM 84032
Waiting for PIDS: 84032.
/usr/sbin/service: DEBUG: run_rc_command: stop_postcmd: dkim_postcmd Stoppi=
ng
saslauthd.
/usr/sbin/service: DEBUG: run_rc_command: doit: su -m cyrus -c 'sh -c "kill
-TERM 67912"'
/usr/sbin/service: DEBUG: pid file (/var/run/saslauthd/saslauthd.pid): not
readable.
/usr/sbin/service: DEBUG: checkyesno: saslauthd_enable is set to YES.
Starting saslauthd.
/usr/sbin/service: DEBUG: run_rc_command: doit:  limits -C daemon  su -m cy=
rus
-c 'sh -c "/usr/local/sbin/saslauthd -a ldap "'
/usr/sbin/service: DEBUG: pid file (/var/run/milteropendkim/pid): not reada=
ble.
/usr/sbin/service: DEBUG: checkyesno: milteropendkim_enable is set to YES.
/usr/sbin/service: DEBUG: run_rc_command: start_precmd: dkim_prepcmd Starti=
ng
milteropendkim.
/usr/sbin/service: DEBUG: run_rc_command: doit:  limits -C daemon=20
/usr/local/sbin/opendkim  -l   -u mailnull:mailnull -P
/var/run/milteropendkim/pid -x /usr/local/etc/mail/opendkim.conf=20=20=20
/usr/sbin/service: DEBUG: run_rc_command: start_postcmd: dkim_start_postcmd
/usr/sbin/service: DEBUG: Sourcing /usr/local/etc/rc.conf.d/cyrus_imapd
/usr/sbin/service: DEBUG: pid file (/var/run/cyrus-master.pid): not readabl=
e.
/usr/sbin/service: DEBUG: checkyesno: cyrus_imapd_enable is set to YES.
Starting cyrus_imapd.
/usr/sbin/service: DEBUG: run_rc_command: doit:  limits -C daemon=20
/usr/local/cyrus/libexec/master -d /usr/sbin/service: DEBUG: Sourcing
/usr/local/etc/rc.conf.d/clamav_clamd
/usr/sbin/service: DEBUG: checkyesno: clamav_clamd_enable is set to YES.
/usr/sbin/service: DEBUG: run_rc_command: start_precmd: clamav_clamd_precmd
Starting clamav_clamd.
/usr/sbin/service: DEBUG: run_rc_command: doit:  limits -C daemon  su -m
mailnull -c 'sh -c "/usr/local/sbin/clamd  "'
/usr/sbin/service: DEBUG: Sourcing /usr/local/etc/rc.conf.d/clamav_freshclam
/usr/sbin/service: DEBUG: pid file (/var/run/clamav/freshclam.pid): not
readable.
/usr/sbin/service: DEBUG: checkyesno: clamav_freshclam_enable is set to YES.
/usr/sbin/service: DEBUG: run_rc_command: start_precmd: clamav_freshclam_pr=
ecmd
Starting clamav_freshclam.
/usr/sbin/service: DEBUG: run_rc_command: doit:  limits -C daemon  su -m
mailnull -c 'sh -c "/usr/local/bin/freshclam  --daemon -p
/var/run/clamav/freshclam.pid"'
/usr/sbin/service: DEBUG: checkyesno: apache24_http_accept_enable is set to=
 NO.
/usr/sbin/service: DEBUG: checkyesno: apache24_configcheck_disable is set to
NO.
/usr/sbin/service: DEBUG: pid file (/var/run/httpd.pid): not readable.
/usr/sbin/service: DEBUG: checkyesno: apache24_enable is set to YES.
/usr/sbin/service: DEBUG: run_rc_command: start_precmd: apache24_prestart
/usr/sbin/service: DEBUG: checkyesno: apache24_configcheck_disable is set to
NO.
Performing sanity check on apache24 configuration:
Syntax OK
/usr/sbin/service: DEBUG: checkyesno: apache24limits_enable is set to NO.
Starting apache24.
/usr/sbin/service: DEBUG: run_rc_command: doit:  limits -C daemon=20
/usr/local/sbin/httpd  -DNOHTTPACCEPT



Log when issuing "service milter-opendkim restart":

/usr/local/etc/rc.d/milter-opendkim: DEBUG: pid file
(/var/run/milteropendkim/pid): not readable.
/usr/local/etc/rc.d/milter-opendkim: DEBUG: checkyesno: milteropendkim_enab=
le
is set to YES.
/usr/local/etc/rc.d/milter-opendkim: DEBUG: pid file
(/var/run/milteropendkim/pid): not readable.
/usr/local/etc/rc.d/milter-opendkim: DEBUG: checkyesno: milteropendkim_enab=
le
is set to YES.
milteropendkim not running? (check /var/run/milteropendkim/pid).
/usr/local/etc/rc.d/milter-opendkim: DEBUG: pid file
(/var/run/milteropendkim/pid): not readable.
/usr/local/etc/rc.d/milter-opendkim: DEBUG: checkyesno: milteropendkim_enab=
le
is set to YES.
/usr/local/etc/rc.d/milter-opendkim: DEBUG: run_rc_command: start_precmd:
dkim_prepcmd Starting milteropendkim.
/usr/local/etc/rc.d/milter-opendkim: DEBUG: run_rc_command: doit:  limits -C
daemon  /usr/local/sbin/opendkim  -l   -u mailnull:mailnull -P
/var/run/milteropendkim/pid -x /usr/local/etc/mail/opendkim.conf=20=20=20
/usr/local/etc/rc.d/milter-opendkim: DEBUG: run_rc_command: start_postcmd:
dkim_start_postcmd root@mail:~ # ps ax | grep milter
37977  -  SsJ  0:00.00 /usr/local/sbin/opendkim -l -u mailnull:mailnull -P
/var/run/milteropendkim/pid -x /usr/local/etc/mail/opendkim.conf

--=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-258011-7788>