On Sun, Sep 7, 2014 at 10:44 AM, Scot Hetzel <swhet...@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.
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to