From owner-freebsd-current@FreeBSD.ORG Sun Sep 7 16:16:38 2014 Return-Path: Delivered-To: freebsd-current@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 3395E4D3; Sun, 7 Sep 2014 16:16:38 +0000 (UTC) Received: from mail-ig0-x235.google.com (mail-ig0-x235.google.com [IPv6:2607:f8b0:4001:c05::235]) (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 E9DC018C9; Sun, 7 Sep 2014 16:16:37 +0000 (UTC) Received: by mail-ig0-f181.google.com with SMTP id h15so1611988igd.14 for ; Sun, 07 Sep 2014 09:16:37 -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=pXQbwyo5Gk9dL2f65a/xrpExYJdxd0msydp1s5Ykq2c=; b=WZMNcY+Q2lvjtdbL+hSl2a5i/1Tmmc5n7Ae47ueNvdk2LijLWN9IPxkIPWBO93eu+n nPxix1jg3oVjz1Sl7Jn7Ym3N6NyxQl6cZxnnG1ttsWSyZK7XdRuVKoZEhj1a41+AaCBV 5gEmW0q30k59J0YJqfQ5Qka+E2wtJzBtsbUc+pXxIayoLgzimZkutAh4CvBqNjgYuoXH HGtAfejO38eWVnkBmiu5z2dEqepImzFgOXxCeph+juZVLbC0tqeWQxbBLmTRY3HDFSQJ eFMGB9TL33h8StCBedrDYtkSRaugLLaijhtyhO8amvIqbh9R/8vfMm5OKRolK2bi+jyG YBWw== MIME-Version: 1.0 X-Received: by 10.42.208.70 with SMTP id gb6mr18521icb.89.1410106597306; Sun, 07 Sep 2014 09:16:37 -0700 (PDT) Received: by 10.50.122.42 with HTTP; Sun, 7 Sep 2014 09:16:37 -0700 (PDT) In-Reply-To: References: <20140907090321.12bbc428.ohartman@zedat.fu-berlin.de> <20140907153342.2366ad8b@X220.alogt.com> <20140907094308.6c466d9f.ohartman@zedat.fu-berlin.de> <20140907112811.5570fc85.ohartman@zedat.fu-berlin.de> Date: Sun, 7 Sep 2014 11:16:37 -0500 Message-ID: Subject: Re: service doen't get started at boottime, but can start manually From: Scot Hetzel To: "O. Hartmann" Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD CURRENT , FreeBSD Ports , Erich Dollansky X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 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: Sun, 07 Sep 2014 16:16:38 -0000 On Sun, Sep 7, 2014 at 10:44 AM, Scot Hetzel wrote: > I created the rc.d/refdbd script by copying /etc/rc.d/inetd and make a > few minor changes. > This script (untested) should do what the scripts/refdb.in and > scripts/refdbctl.in were doing: > > #!/bin/sh > # > # $FreeBSD$ > # > > # PROVIDE: refdbd > # REQUIRE: LOGIN > # KEYWORD: shutdown > > . /etc/rc.subr > > name="refdbd" > rcvar="refdbd_enable" > command="%%PREFIX%%/bin/${name}" > pidfile="/var/run/${name}.pid" > required_files="/etc/${name}.conf" I missed required_files in my editing of the original script. If refdbd does have a configuration file, changes this to point to the correct file, otherwise this can be removed. > extra_commands="reload" > > load_rc_config $name > run_rc_command "$1" > > Place the above in textproc/refdb/files/refdb.in, then add: > > USE_RC_SUBR= refdbd > > in textproc/refdb/Makefile. > -- DISCLAIMER: No electrons were maimed while sending this message. Only slightly bruised.