Bug 2223998 - Sendmail is restarted multiple times on boot
Summary: Sendmail is restarted multiple times on boot
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: sendmail
Version: 38
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Jaroslav Škarvada
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-19 14:02 UTC by Eiríkur Hjartarson
Modified: 2023-07-19 14:10 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Eiríkur Hjartarson 2023-07-19 14:02:41 UTC
On all my fedora-38 machines sendmail is started at least three times (stopped two times).  This is apparently due to the NetworkManager-dispatcher.service, which calls scripts in /usr/lib/NetworkManager/dispatcher.d/ especially 10-sendmail:

---
#!/usr/bin/sh

case "$2" in
	up|down|vpn-up|vpn-down)
		/bin/systemctl --no-block try-restart sendmail.service || :
		;;
esac
---

Maybe sendmail.service should depend on network.target or network-online.target?

Reproducible: Always

Steps to Reproduce:
1. Configure and activate sendmail (including "systemctl enable sendmail")
2. Reboot machine
3. Execute "journalctl -b0 -u sendmail -u sm-client" (and note multiple starts)
Actual Results:  
Output shows that sendmail/sm-client are started at least three times and stopped two times.

Expected Results:  
Sendmail/sm-client should only be started once.


Note You need to log in before you can comment on or make changes to this bug.