public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Iain Buchanan <iaindb@netspace.net.au>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Starting cruisecontrol -> initscript
Date: Tue, 17 Jul 2007 09:05:40 +0930	[thread overview]
Message-ID: <1184628940.13623.28.camel@orpheus> (raw)
In-Reply-To: <469B91A8.20707@omesc.com>

On Mon, 2007-07-16 at 17:41 +0200, Johannes Skov Frandsen wrote:
> Hey
> 
> I don't no if this is question for the gentoo mailing list but I'll try
> here first.
> 
> I'm trying to write a initscript for gentoo so cruisecontrol can start
> automatically on boot.

sounds like a good question for this list :)

[snip]

> running '/etc/init.d/cruise start'  yields this response:
> 
>  * Starting Cruise Control ...
> /sbin/start-stop-daemon: stat /bin/java
> -Djavax.management.builder.initial=mx4j.server.MX4JMBeanServerBuilder
> -Dcc.library.dir=/opt/cruisecontrol/lib -jar
> /opt/cruisecontrol/lib/cruisecontrol-launcher.jar
> -configfile=/opt/cruisecontrol/config.xml -jmxport 8000 -webport 8080:
> No such file or directory (No such file or directory)
> 
> obviously a file could not be found, but which and why?

the output is coming from start-stop-daemon, because that is the first
line printed (/sbin/start-stop-daemon: ...) so I think start-stop-daemon
can't find something.

usually you have to put a "--" between the executable and it's options,
or start-stop-daemon can get confused:

/sbin/start-stop-daemon --start --exec /path/to/bin -- --options

> When I run the same command from the shell:
> 
> java
> -Djavax.management.builder.initial=mx4j.server.MX4JMBeanServerBuilder
> -Dcc.library.dir=/opt/cruisecontrol/lib -jar
> /opt/cruisecontrol/lib/cruisecontrol-launcher.jar
> -configfile=/opt/cruisecontrol/config.xml -jmxport 8000 -webport 8080
> 
> I get his output:
> 
> 
> > > WARNING: cc.home reset to /opt/cruisecontrol

that looks more like java output, but you didn't run the command the
same way.  Try running start-stop-daemon from the shell.

> This is my first attempt on writing a initscript so bare with me if I
> have missed something obvious.

you may want to look at the --make-pidfile and --pidfile options to
start-stop-daemon when you've got it working.  This helps you stop the
daemon later.

HTH,
-- 
Iain Buchanan <iaindb at netspace dot net dot au>

BOFH Excuse #206:

Police are examining all internet packets in the search for a narco-net-trafficker

-- 
gentoo-user@gentoo.org mailing list



      parent reply	other threads:[~2007-07-16 23:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-16 15:41 [gentoo-user] Starting cruisecontrol -> initscript Johannes Skov Frandsen
2007-07-16 17:01 ` Mick
2007-07-16 23:35 ` Iain Buchanan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1184628940.13623.28.camel@orpheus \
    --to=iaindb@netspace.net.au \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox