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 Fri, 26 Oct 2007 16:59:59 GMT
I've created an init script for Gentoo that seems to work.

#!/sbin/runscript

depend() {
        need net localmount
        after bootmisc
}

start() {
        ebegin "Starting Continuum"
        start-stop-daemon --background --make-pidfile --pidfile
/var/run/continuum.pid --chuid apache --name java --start --exec
/YOUR_DIR/continuum/bin/plexus.sh
        eend $?
}

stop() {
        ebegin "Stopping Continuum"
        start-stop-daemon --stop --pidfile /var/run/continuum.pid
        eend $?
}

Give it a try and let me know if it works.

[DISCLAIMER] I'm by no means a Gentoo expert, just a fairly
experienced user. This seems to work, I'm not saying this is the best
way to do it.

Mime
View raw message