From owner-freebsd-ports@FreeBSD.ORG Sun Sep 7 14:53:53 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 25A46594 for ; Sun, 7 Sep 2014 14:53:53 +0000 (UTC) Received: from mail-ie0-x22c.google.com (mail-ie0-x22c.google.com [IPv6:2607:f8b0:4001:c03::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E7BAF1EE9 for ; Sun, 7 Sep 2014 14:53:52 +0000 (UTC) Received: by mail-ie0-f172.google.com with SMTP id tr6so157905ieb.3 for ; Sun, 07 Sep 2014 07:53:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=y1ecZaMbSwQQSGNYQMpIhrxr+YXs2KrBBOW/Goli4kE=; b=o0eOF1wCRSqxWdqogabpDpJmanDo0vGWc+ZQXVHRN2ZIirWiZpHsd4cbueObFJMPCy 5OkfDd/ubRoeDp85RStGHcUdJ6gKV8aRsSx8dC1FfQDbYWG7cq/sJgnFws0NNljyF04+ g2SI8wxl32p0GQrOQ6J/+qWx3YMd0XLEVGIht9RYK+TkLBtR3hY1R/+3HBByd+w32674 5Kupg5ixjeiKXsMIOG5fVtATLXiN/h0BNQBpUDmdNNWuxLLnBjeGPMR+RFIafHwCT3Tk /CC8t6wnaAxE82axt0fM8Qk9JCoF16y7QU8/LwZEBWKznye+yeV5HGKfo4KXYDP2F59b yYRQ== MIME-Version: 1.0 X-Received: by 10.42.201.134 with SMTP id fa6mr892760icb.73.1410101631868; Sun, 07 Sep 2014 07:53:51 -0700 (PDT) Received: by 10.50.122.42 with HTTP; Sun, 7 Sep 2014 07:53:51 -0700 (PDT) In-Reply-To: <3855474.cM0CkAr3yg@curlew.lan> References: <20140907090321.12bbc428.ohartman@zedat.fu-berlin.de> <3855474.cM0CkAr3yg@curlew.lan> Date: Sun, 7 Sep 2014 09:53:51 -0500 Message-ID: Subject: Re: service doen't get started at boottime, but can start manually From: Scot Hetzel To: Mike Clarke Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD Ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Sep 2014 14:53:53 -0000 On Sun, Sep 7, 2014 at 6:16 AM, Mike Clarke wrote: > On Sunday 07 Sep 2014 04:03:25 Scot Hetzel wrote: > >> > I had a look at scripts/refdb.in, it is not a proper rc script for >> > FreeBSD, as it is missing several keywords: >> > >> > # PROVIDE: <- all scripts need this > > I'm not sure that PROVIDE is still mandatory. But run_rc_command() in > rc.subr does require "name" to be defined. > > There are several example scripts at > , > most of which which do not include PROVIDE. > The scripts in 3-6, and 8 are wrong. According to /etc/rc.subr, the '# PROVIDE: ' is mandatory to detect a rc script: 1884find_local_scripts_new() { 1885 local_rc='' 1886 for dir in ${local_startup}; do 1887 if [ -d "${dir}" ]; then 1888 for file in `grep -l '^# PROVIDE:' ${dir}/* 2>/dev/null`; do 1889 case "$file" in 1890 *.sample) ;; 1891 *) if [ -x "$file" ]; then 1892 local_rc="${local_rc} ${file}" 1893 fi 1894 ;; 1895 esac 1896 done 1897 fi 1898 done 1899} > Only one of the example scripts uses PROVIDE but the text implies that > it's only needed if other scripts are to depend on it. > > -- DISCLAIMER: No electrons were maimed while sending this message. Only slightly bruised.