continuum-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hilco Wijbenga" <hilco.wijbe...@gmail.com>
Subject Re: Gentoo Linux init.d script?
Date Tue, 23 Oct 2007 16:55:53 GMT
Hi Vanja,

I ran into the same problem.

On 10/23/07, Vanja Petreski <vpetreski@gmail.com> wrote:
> ln -s /opt/continuum-1.1-beta-3/bin/linux-x86-32/run.sh
> /etc/init.d/continuum

The run.sh script is not a Gentoo init script.

> Now, I can successfully start and stop continuum by hand:
>
> /etc/init.d/continuum start
> /etc/init.d/continuum stop

:-) Yep, this all works.

> But, when system is booting, I only get "Starting Apache Continuum" and I
> can't access web application.

Indeed. I've created Gentoo init scripts for both Archiva and
Continuum. (You'll need to edit it to fix the hardcoded path.)

#!/bin/sh

# chkconfig: 2345 20 80
# description: Starts and stops continuum.

# Source function library.
. /etc/rc.d/init.d/functions

function start() {
        echo -n "Starting continuum: "
        daemon --user apache /YOUR_DIR/bin/linux-x86-32/run.sh start
>/dev/null 2>&1
        echo_success
        echo
}

function stop() {
        echo -n "Stopping continuum: "
        daemon --user apache /YOUR_DIR/bin/linux-x86-32/run.sh stop
>/dev/null 2>&1
        echo_success
        echo
}

# See how we were called.
case "$1" in
        start)
                start
                ;;
        stop)
                stop
                ;;
        status)
                ;;
        restart)
                stop
                start
                ;;
        condrestart)
                ;;
        reload)
                ;;
        *)
                echo "Usage: $0 {start|stop|status|restart|condrestart|reload}"
                ;;
esac
exit $RETVAL

> Any help?

HTH,
Hilco

Mime
View raw message