public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: "paul kölle" <paul@subsignal.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] java and start-stop-daemon [repost]
Date: Tue, 22 Aug 2006 14:21:34 +0200	[thread overview]
Message-ID: <44EAF6CE.2020704@subsignal.org> (raw)
In-Reply-To: <200608221054.35634.uberlord@gentoo.org>

Roy Marples wrote:
> On Tuesday 22 August 2006 08:42, paul kölle wrote:
[ snipp ]
>> Starting /opt/sun-jdk-1.5.0.08/bin/java...
>> Detatching to start /opt/sun-jdk-1.5.0.08/bin/java...done.
>>  [ ok ]
>>
>> -> app not running
>>
>> I'm mostly interested in changing the user at startup and pid file
>> handling. If start-stop-daemon won't work I'd need to add sudo to
>> RDEPEND and grab the PID from "ps U" or similar... I'd prefer doing it
>> in a more "standard" way though.
> 
> What is /opt/sun-jdk-1.5.0.08/bin/java ? Does it change it's process name at 
> all? Maybe you need to use the --name option.
Hmm, I think it is the java "interpreter" and it doesn't seem to change
its name. "cat /proc/<pid>/stat shows "java" as the process name, so
--name would be the same for all running java apps.

[...poking around..]
Ok, fixed ;) Apparently s-s-d doesn't like linebreaks (not even escaped)
between "--startas $command", and "-- $args".

> 
> I ask as for init scripts we have a bash wrapper around s-s-d that is a lot 
> more strict than s-s-d itself. For example it should only be used for 
> daemons - ie what you call is expected to be a daemon. Thus it is useless for 
> shell scripts that call daemons. See the courier-imap fiasco for details on 
> this.
I'm pretty sure I do not understand the details here ;) I just thought
about s-s-d as something you can use as a wrapper for backgrounding and
pid stuff...

thanks again,
 Paul


-- 
gentoo-dev@gentoo.org mailing list



      reply	other threads:[~2006-08-22 12:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-22  7:42 [gentoo-dev] java and start-stop-daemon [repost] paul kölle
2006-08-22  9:54 ` Roy Marples
2006-08-22 12:21   ` paul kölle [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=44EAF6CE.2020704@subsignal.org \
    --to=paul@subsignal.org \
    --cc=gentoo-dev@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