---------- Forwarded message ----------
From: Aryeh Friedman <aryeh.fried...@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 <rpa...@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 <rpa...@freebsd.org> wrote:
> On 10 Aug 2013, at 22:31, Aryeh Friedman <aryeh.fried...@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
>
>
>
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Reply via email to