On Sun, Sep 7, 2014 at 10:44 AM, Scot Hetzel <swhetzel_at_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.Received on Sun Sep 07 2014 - 14:16:38 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:51 UTC