Bugzilla – Bug 754544
Can't reload sendmail under systemd
Last modified: 2012-05-25 16:00:08 UTC
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0 Under systemd it's not possible to reload sendmail. Reloading is necessary for example after updating /etc/mail/local-host-names. A restart is no alternative. Active smtp sessions will block the smtp network port, therefore making it impossible for a newly created daemon to bind to the smtp port. Reproducible: Always Steps to Reproduce: 1. service sendmail reload Actual Results: redirecting to systemctl Failed to issue method call: Job type reload is not applicable for unit sendmail.service. Expected Results: SIGHUP delivered to the main sendmail proces reload in system-v init: echo -n "Reload service sendmail" killproc -p $msppid -i $srvpid -TERM /usr/sbin/sendmail rc_status startproc -p $msppid -i $srvpid /usr/sbin/sendmail $SENDMAIL_CLIENT_ARGS rc_status killproc -p $srvpid -i $msppid -HUP /usr/sbin/sendmail rc_status -v
Hi,could you please have a look at this?I am not sure whether it is right to assign it to you.Feel free to reassign it.Thank you.
bug in the sendmail package, its units should have an "ExecReload" line, for instance: ExecReload=/bin/kill -HUP $MAINPID
What is wrong with PIDFile=/var/spool/clientmqueue/sm-client.pid or PIDFile=/var/run/sendmail.pid why does systemctl not use them?
Nothing wrong there but dy default systemd doesn't bind any action to reload, so the ExecReload line need to be added to the service file.
added
This is an autogenerated message for OBS integration: This bug (754544) was mentioned in https://build.opensuse.org/request/show/122425 Factory / sendmail