I have an file /etc/rc.d/localpkg.
After read this file, i see that only script with extension .sh, are considered to run at boot time. So i modify my scripts according with that, and now run without any problem.
Thanks for reply.

Adrian Penisoara wrote:
Hi,

On Tue, Mar 4, 2008 at 6:23 PM, Fratiman Vladut <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    Is set, but not work.
    For example, i have script to launch opendchub daemon:
    name of file: opendchub
    content:
    #! /bin/sh

    case "$1" in
    start)
        [ -x /usr/local/bin/opendchub ] &&
    /usr/local/bin/opendchub -w /usr/local/etc/ -l /var/log/opendchub.log>
    /dev/null && echo 'Started opendchub'
           ;;
    stop)
          killall -9 opendchub > /dev/null && echo 'hub stopped.'
           ;;
    restart)
           $0 stop
           $0 start
           ;;
    status)
    ps -auxww | egrep opendchub | egrep -v "($0|egrep)"
    ;;
    *)
          #echo "Usage: `basename $0` {start|stop|restart|status}" >&2
           [ -x /usr/local/bin/opendchub ] &&
                   /usr/local/bin/opendchub -l /var/log/opendchub.log -w
    /usr/local/etc/> /dev/null && echo 'Started opendchub'
          ;;
    esac

    exit 0

    This script don't start. When i run in console, with command "sh
    opendchub", then the daemon start without any problem.


The rc.d scripts syntax has changed in the mean time -- you/it should make use of the /etc/rc.subr stub. For packages you will need to upgrade them [from updated ports] to the latest version.

Check whether you have an /etc/rc.d/localpkg script. Try to run it with trace (e.g. "sh -x /etc/rc.d/localpkg start").

Regards,
Adrian Penisoara
ROFUG / EnterpriseBSD

_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to