From owner-freebsd-bugs Wed Feb 27 1:30: 9 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id A5B6D37B417 for ; Wed, 27 Feb 2002 01:30:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g1R9U1t97175; Wed, 27 Feb 2002 01:30:01 -0800 (PST) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id CF5C937B400 for ; Wed, 27 Feb 2002 01:23:03 -0800 (PST) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g1R9N3M96119; Wed, 27 Feb 2002 01:23:03 -0800 (PST) (envelope-from nobody) Message-Id: <200202270923.g1R9N3M96119@freefall.freebsd.org> Date: Wed, 27 Feb 2002 01:23:03 -0800 (PST) From: Michael Wardle To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: conf/35371: /etc/rc virecover script starts sendmail even if sendmail should be off Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 35371 >Category: conf >Synopsis: /etc/rc virecover script starts sendmail even if sendmail should be off >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Feb 27 01:30:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Michael Wardle >Release: 4.5 >Organization: - >Environment: FreeBSD 4.5-RELEASE i386 >Description: I installed FreeBSD on a low-end machine to make it essentially a terminal, and decided to turn off network services including sendmail. On boot, sendmail is started by the virecover script in /etc/rc, even if sendmail is configured off. >How-To-Repeat: Turn off sendmail in /etc/rc.conf (sendmail_enable="NO"), reboot. It's probably also necessary to have a crashed vi session. >Fix: The way I worked around it was to check the value of ${sendmail_enable}. It would also be possible to check whether sendmail is running or see if there's a sendmail pid or lock file (but it doesn't seem to put one in /var/run). I'll attach a patch when I find a form that lets me upload files. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message