Add new comment

Submitted by jcinacio (registered user) on Sat, 2007-08-11 22:30.

instead of the starting bixagent manually, i use this startup script in /etc/init.d/bixagent.

don't forget to run (as root): chmod +x /etc/init.d/bixagent && update-rc.d bixagent defaults

--SNIP-- 

#!/bin/sh

BIXAGENT_PATH="/usr/local/bixdata/bixagent"

. /lib/lsb/init-functions

case "$1" in
start)
        log_action_begin_msg "Starting bixdata agent"
        start-stop-daemon --chdir "$BIXAGENT_PATH" --exec bixagent --background --start
        log_action_end_msg $?
        ;;
stop)
        log_action_begin_msg "Stopping bixdata agent"
        start-stop-daemon --chdir "$BIXAGENT_PATH" --exec bixagent --stop
        log_action_end_msg $?
        ;;
restart)
        log_action_begin_msg "Restarting bixdata agent"
        start-stop-daemon --chdir "$BIXAGENT_PATH" --exec bixagent --stop 2>&1 >/dev/null
        sleep 3
        start-stop-daemon --chdir "$BIXAGENT_PATH" --exec bixagent --background --start
        log_action_end_msg $?
        ;;
*)
        echo "Usage: /etc/init.d/bixagent {start|stop|restart}"
        exit 1
        ;;
esac

exit 0

Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.

Reply

*
*
The content of this field is kept private and will not be shown publicly.


*

  • Images can be added to this post.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <div>
  • Lines and paragraphs break automatically.