First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 8885
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Donny Davies (RETIRED) <woodchip@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Jonathan Rogers <jonner@teegra.net>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
metalog my current metalog initscript text/plain Jonathan Rogers 2002-10-08 04:50 0000 699 bytes Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 8885 depends on: Show dependency tree
Show dependency graph
Bug 8885 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2002-10-08 04:49 0000
According to the metalog manpage, the /usr/sbin/metalog command should be given
the "--daemonize" option to run it in the background. However, the initscript
supplied does not use it.

The strange thing is that the initscript works normally out of the box. I only
discovered something was amiss when I added an option for starting metalog.
Since the start() function looks for extra options to metalog in the variable
METALOG_OPTS, I added this line near the beginning of the file: 

METALOG_OPTS="--synchronous"

After adding that line, the initscript would hang after starting metalog. The
metalog daemons started normally, according to ps. However, the initscript
wasn't returning. This is the behavior I'd expect from reading the metalog and
start-stop-daemon manpages. I added "--daemonize" to the metalog options and it
works fine.

The only thing I can't figure out is why the initscript didn't freeze out of the
box. When I ran the whole start-stop-daemon command ( "start-stop-daemon --start
--quiet --exec /usr/sbin/metalog -- -p /var/run/metalog.pid") from the shell, it
blocked every time, though ps showed the daemons had started. When I then hit
Ctrl-C, the daemon would exit. Again, this is expected behavior; it's just
amazing the thing ever worked right.

Anyway, I'm sure "--daemonize" should be specified. I've attached my current
metalog initscript.

------- Comment #1 From Jonathan Rogers 2002-10-08 04:50:46 0000 -------
Created an attachment (id=4503) [edit]
my current metalog initscript

This should be usable for anyone, but others may not want the "--synchronous"
behavior.

------- Comment #2 From Donny Davies (RETIRED) 2002-10-12 01:09:26 0000 -------
thx, fixed.

First Last Prev Next    No search results available      Search page      Enter new bug