From owner-freebsd-current@FreeBSD.ORG Thu Jun 21 10:54:51 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 549671065688; Thu, 21 Jun 2012 10:54:51 +0000 (UTC) (envelope-from vmagerya@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id A6E968FC14; Thu, 21 Jun 2012 10:54:50 +0000 (UTC) Received: by eeke49 with SMTP id e49so212798eek.13 for ; Thu, 21 Jun 2012 03:54:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=Y6Nk2hLwUCSXn9NnyHpGjo1ZpHrjb+/Tlzp/iTPFVhw=; b=Q0x7RNkCGWtdQ2NoWUh5MX98TcTyrbtbONRXigfY+fI54L95WdeXtBCrCqGJ1fMXPq 7+5ChvufSidMEYfwUKmlwq23hVfSJ4WY0wjkNkQ6rRFJ4Nn7rnQSMk8ob4iAH+xWcDNK 7MiGsrjHy70yQ7VwMUTJaFQHkuFL7subDkw4qmVXP0ONd4HJTFV494Q2QExA2ZYp/b0/ 40ftmhgXSVNxklW0cC7uDgbQFLJ3UMfyS6Ehqi9/+NI3OqT72IjYcM1BgmGZM1CXJK9M /zDHTvbJlQTnvIawDiRmmDUOYa20nF3BfBy5HxYJ4Ax/X9ECOARwSd2o3eVBz/ceGyHL ojMw== Received: by 10.14.100.68 with SMTP id y44mr2714841eef.69.1340276083722; Thu, 21 Jun 2012 03:54:43 -0700 (PDT) Received: from [172.29.1.142] (altimet-gw.cs2.dp.wnet.ua. [217.20.178.249]) by mx.google.com with ESMTPS id u14sm101565787eem.4.2012.06.21.03.54.41 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 21 Jun 2012 03:54:42 -0700 (PDT) Message-ID: <4FE2FD32.8070801@gmail.com> Date: Thu, 21 Jun 2012 13:53:38 +0300 From: Vitaly Magerya User-Agent: Thunderbird MIME-Version: 1.0 To: Devin Teske References: <9B5B97C3-A795-4A16-8381-B0FED87E3053@fisglobal.com> <4A5D7040-8623-4005-A5DF-D9E9211E4986@fisglobal.com> In-Reply-To: <4A5D7040-8623-4005-A5DF-D9E9211E4986@fisglobal.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: [CFT] sysutils/bsdconfig: Replacement for sysinstall(8) post-install configuration abilities X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jun 2012 10:54:51 -0000 Devin Teske wrote: >> "Toggle Startup Services" dialog shows sendmail_enable and >> sendmail_msp_queue_enable variables, but doesn't seem to show >> sendmail_submit_enable and sendmail_outbound_enable. Is this >> by design? > > What does the following produce: > > service sendmail rcvar > > Now what does this say: > > grep sendmail /var/run/bsdconfig/startup_rcvar_map.cache > > Do they agree? OK, both list sendmail_enable and sendmail_msp_queue_enable only. It appears that /etc/rc.d/sendmail only registers sendmail_submit_enable and sendmail_outbound_enable if they are enabled (and enabling or disabling one of the four affects the status of others). That behavior combined with the fact that bsdconfig does not recompute rcvars each time you make modifications means that you can't manipulate (i.e. disable) sendmail from bsdconfig. I think the right thing to do is to fix /etc/rc.d/sendmail, but I don't know how: removing the conditions around sendmail_submit_enable and sendmail_outbound_enable parts fixes rcvar, but probably breaks other commands. Any ideas how to fix this? > The nature of this bug is that if the item that you select in the > menu is evenly divisible by both 2 and 3 landing on a boundary, > the item works as expected, otherwise you can only toggle the item > ON (not off). Sounds interesting; there must be some really hairy stuff inside bsdconfig if this is the kind of edge cases it has.