Your message dated Fri, 23 May 2008 07:16:19 -0430
with message-id <[EMAIL PROTECTED]>
and subject line Re: Bug#475932: pid is wrong pid
has caused the Debian Bug report #475932,
regarding /etc/init.d/gkrellmd stop fails
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)
--
475932: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=475932
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: gkrellmd
Version: 2.3.1-1
Severity: normal
The pidfile for gkrellmd is not created when it is started from
/etc/init.d/gkrellmd, probably because start/stop daemon isn't the one doing
the daemonizing. The solution is to use --pidfile as a gkrellmd option rather
than start-stop-daemon option.
E.g.
start-stop-daemon --start --quiet \
--exec $DAEMON -- --pidfile /var/run/$NAME.pid $DAEMON_OPTS
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
--- End Message ---
--- Begin Message ---
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Daniel Dickinson wrote:
> On Thu, 22 May 2008 21:33:21 -0430
> Jose Luis Rivas Contreras <[EMAIL PROTECTED]> wrote:
>
>> This is my init file:
>> 8<-------------
>> case "$1" in
>> start)
>> echo -n "Starting $DESC: "
>> start-stop-daemon --start --quiet
>> --pidfile /var/run/gkrellmd.pid \ --exec $DAEMON -m -b -- $DAEMON_OPTS
> ^^^^^
> I didn't see that -m -b. It must be new because I wouldn't have need
> to make the fix I did if they were there before. Those are
> --make-pidfile and --background which cause start-stop-daemon to do the
> deamonization instead of the program itself (gkrellmd). I think it is
> better to let the program daemonize itself (according to man
> start-stop-daemon:
>
> Typically used with programs that don't detach on their own.
> This option will force start-stop-daemon to fork before
> starting the process, and force it into the background.
> WARNING: start-stop-daemon cannot check the exit status if the
> process fails to execute for any reason. This is a last resort,
> and is only meant for programs that either make no sense
> forking on their own, or where it's not feasible to add the code
> for them to do this themselves.
>
> Don't mean to be a pain; I fixed it myself and then when the package
> wanted to update I didn't see the -m -b. In any event I'm going to
> leave my changes in place for now, and I recommend you switch to the
> method I use because -m -b is meant as a last resort.
>
> Up to you of course.
>
> Regards,
>
> Daniel
>
I sent those same lines to you early[1]... In fact, that was the change
I made in -2 version for closing this bug ;)
Regards.
[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=475932#22
- --
Jose Luis Rivas. San Cristóbal, Venezuela. PGP: 0xCACAB118
http://ghostbar.ath.cx/{about,acerca} - http://debian.org.ve
`ghostbar' @ irc.debian.org/#debian-ve,#debian-devel-es
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFINq6LOKCtW8rKsRgRAmzuAJkBVo6mPvXnt/N7b2VDtAJH5ioa1wCfZPAE
pvDVVanLu3WQcsCu6uN9bGc=
=x2JN
-----END PGP SIGNATURE-----
--- End Message ---