Date: Sun, 11 Aug 2013 02:09:18 -0400 From: Aryeh Friedman <aryeh.friedman@gmail.com> To: FreeBSD Mailing List <freebsd-hackers@freebsd.org> Subject: Fwd: how to make a etc/rc.d start at boot time Message-ID: <CAGBxaX=Qmy_vbYjBjJXZPRaviqcYjqySBhSurdmjGC479kc4Eg@mail.gmail.com> In-Reply-To: <CAGBxaXkR827hgV_mbspK5v7LzRTziz=oSAyeWiBGyuyvrH0gZg@mail.gmail.com> References: <CAGBxaXkr2oq1OPQi338pHFOyETy1Z7RkV7mPc91dOaGmrXXjAw@mail.gmail.com> <E889514C-93E9-476C-A05F-FE5D53117279@FreeBSD.org> <CAGBxaXkR827hgV_mbspK5v7LzRTziz=oSAyeWiBGyuyvrH0gZg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
---------- Forwarded message ---------- From: Aryeh Friedman <aryeh.friedman@gmail.com> Date: Sun, Aug 11, 2013 at 2:07 AM Subject: Re: how to make a etc/rc.d start at boot time To: Rui Paulo <rpaulo@freebsd.org> #!/bin/sh # # Start/stop XXX at boot time # # Copyright (C) 2013 XXX . /etc/rc.subr name="XXX" start_cmd="${name}_start" stop_cmd=":" XXX_start() { echo "$name started." /usr/local/openjdk6/bin/java -cp \ /usr/local/share/XXX/XXX.jar \ XXX.yyy \ /usr/local/etc/XXX/YYY& } load_rc_config $name run_rc_command "$1" On Sun, Aug 11, 2013 at 1:37 AM, Rui Paulo <rpaulo@freebsd.org> wrote: > On 10 Aug 2013, at 22:31, Aryeh Friedman <aryeh.friedman@gmail.com> wrote: > >> I am creating a port for something that needs to start a daemon at >> boot time I have it so I can call onestart on it but XXX_enable="YES" >> in /etc/rc.conf fails to load it.... i.e. >> >> >> /usr/local/etc/rc.d/XXX onestart -- works >> XXX_enable="YES" -- fails > > Please post your script. > > -- > Rui Paulo > > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGBxaX=Qmy_vbYjBjJXZPRaviqcYjqySBhSurdmjGC479kc4Eg>