Bug 255271

Summary: Cosmetic: service -e lists sendmail if sendmail_enable="NONE"
Product: Base System Reporter: Rob LA LAU <freebsd>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed Not Accepted    
Severity: Affects Some People CC: saper
Priority: ---    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Rob LA LAU 2021-04-20 16:35:24 UTC
Defining 'sendmail_enable="NONE"' sets all sendmail related vars to "NO".
However, with this variable set to "NONE", `service -e' still lists sendmail as enabled.
Comment 1 Rob LA LAU 2021-11-05 23:38:25 UTC
6 months, so I guess nobody cares.
Let's close this bug.
Comment 2 Marcin Cieślak 2024-06-07 00:29:49 UTC
Saw this reported today on #FreeBSD on libera.chat.

Looks like it is confused by the fact that /etc/rc.d/sendmail has name="..." and rcvar="..." twice.

> grep ^name= /etc/rc.d/sendmail 
name="sendmail"
name="sendmail_msp_queue"

Therefore addding sendmail_msp_queue=NO makes "service -e" to believe the sendmail is no longer enabled.

Good that the manpage explains the heuristic used to detect enabled services...