From owner-freebsd-questions@FreeBSD.ORG Fri Jun 27 21:39:12 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 91D31106567E for ; Fri, 27 Jun 2008 21:39:12 +0000 (UTC) (envelope-from the.real.david.allen@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.31]) by mx1.freebsd.org (Postfix) with ESMTP id 61B038FC1C for ; Fri, 27 Jun 2008 21:39:12 +0000 (UTC) (envelope-from the.real.david.allen@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so257357ywe.13 for ; Fri, 27 Jun 2008 14:39:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=5VTr7ZgTVkg/8k7exOPzLq0oJxWw0ad3gq84FaC0RWY=; b=YkBpwWlGFlolLNU6k0T1UlymjQkhtjxtRlNBsQMUmKY9Vk3czQSOiXCajVtkCaj9Pl TYxpz6X9Z90Of3BrE/BUYjXnFEZOV1qFgZawZN4W9uYI0P9BjwaUZCtIOlHgS1eIvm63 OgMViTejeHFFdxVZfX8W9fR4pM3RyMu0g9CHg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=kH7sVM2ppyCSzE/8z9lRv6mxxYwpdiaZMxXqbVwG7Uc/DVaF+3hOvbQUsd0N8qz235 nv9pE2+8kBBMmvmEcEoGyjCx1hc7omkFu0lAzY7+lxbyzgTaonFuret4EhmHfbS2t41O eGk2Y15aI5/anHvmkJdCg3Q8M09nVIKB+vTqM= Received: by 10.150.229.16 with SMTP id b16mr2936347ybh.90.1214601115924; Fri, 27 Jun 2008 14:11:55 -0700 (PDT) Received: by 10.151.111.10 with HTTP; Fri, 27 Jun 2008 14:11:55 -0700 (PDT) Message-ID: <2daa8b4e0806271411p709ad002o3137c7eb4ff53bac@mail.gmail.com> Date: Fri, 27 Jun 2008 14:11:55 -0700 From: "David Allen" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: rc scripts X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jun 2008 21:39:12 -0000 I need to an '-s' flag to the execution of openntpd's rc script: # PROVIDE: openntpd # REQUIRE: DAEMON # BEFORE: LOGIN # KEYWORD: nojail . /etc/rc.subr name=openntpd rcvar=`set_rcvar` command=/usr/local/sbin/ntpd required_files=/usr/local/etc/ntpd.conf openntpd_enable=${openntpd_enable:-"NO"} load_rc_config $name run_rc_command "$1" The problems I'm having are multiple. First, the program doesn't offer any logging, and running it with the "do not daemonize" switch with # /usr/local/sbin/ntpd -d 2>&1 > logfile yields no output. Then, I'm not sure I understand everything I'm reading in rc.subr(8), but from trial error, I've discovered that modifying the script's "command" variable doesn't work, nor does adding the usual "scriptname_flags" directive to /etc/rc.conf. Comments, questions and complaints all welcomed.