Date: Sun, 7 Sep 2014 11:16:37 -0500 From: Scot Hetzel <swhetzel@gmail.com> To: "O. Hartmann" <ohartman@zedat.fu-berlin.de> Cc: FreeBSD CURRENT <freebsd-current@freebsd.org>, FreeBSD Ports <freebsd-ports@freebsd.org>, Erich Dollansky <erich@alogt.com> Subject: Re: service doen't get started at boottime, but can start manually Message-ID: <CACdU%2Bf8eYF_HbwqOq0RoC4dq_mG1io5LYfafyipzMn-EzVq9xA@mail.gmail.com> In-Reply-To: <CACdU%2Bf-w4v_8ebe=VsEJn9f4pu_MGdOfugjeL=Wkpyp6PE=TWg@mail.gmail.com> References: <20140907090321.12bbc428.ohartman@zedat.fu-berlin.de> <20140907153342.2366ad8b@X220.alogt.com> <20140907094308.6c466d9f.ohartman@zedat.fu-berlin.de> <CACdU%2Bf_%2BB353Hyv2cHir=Jp53MZoKsFeu4i=spDKEAgsjHmcVQ@mail.gmail.com> <CACdU%2Bf_fby%2BKUUWTEDJrcPSdTdYNx=c2-WMG-pP%2BeR8peuXwiQ@mail.gmail.com> <20140907112811.5570fc85.ohartman@zedat.fu-berlin.de> <CACdU%2Bf-w4v_8ebe=VsEJn9f4pu_MGdOfugjeL=Wkpyp6PE=TWg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Sep 7, 2014 at 10:44 AM, Scot Hetzel <swhetzel@gmail.com> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACdU%2Bf8eYF_HbwqOq0RoC4dq_mG1io5LYfafyipzMn-EzVq9xA>