Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 155456 - net-analyzer/flow-tools-9.68-r3 - 2 daemons of flow-capture can't run
Summary: net-analyzer/flow-tools-9.68-r3 - 2 daemons of flow-capture can't run
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Peter Volkov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-17 01:01 UTC by Andrey Kolbasenko
Modified: 2007-04-09 16:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Kolbasenko 2006-11-17 01:01:57 UTC
Hi!

I want run 2 flow collectors, by running flow-capture from net-analyzer/flow-tools-9.68-r3 package,and can't do it..

This is my step:
1) edit /etc/conf.d/flowcapture and change port to 2055
2) run /etc/init.d/flowcapture

nfc1 init.d # /etc/init.d/flowcapture start
 * Starting flow-capture ...                                                                              [ ok ]

3) copy /etc/conf.d/flowcapture to /etc/conf.d/flowcapture.next
4) copy /etc/init.d/flowcapture to /etc/init.d/flowcapture.next
5) edit /etc/conf.d/flowcapture.next and change port to 2056
6) run /etc/init.d/flowcapture.next

nfc1 init.d # /etc/init.d/flowcapture.krd start
 * Starting flow-capture ...                                                                                               [ !! ]

all work fine, when I copy /usr/bin/flow-capture to flow-capture.next and change /etc/init.d/flow.capture.next.

I Think this is happen because start-stop function in /etc/init.d/flowcapture check running processes and find running flow-capture.

I think this is a bug, because flow-capture may get flow from many sources and it work in by hand running..
Comment 1 Markus Ullmann (RETIRED) gentoo-dev 2007-04-08 13:08:16 UTC
Well it's not a bug, you can do things like this with recent baselayout versions. they allow you to define profiles to start apps multiple times with different configurations. So not much like a bug ;)
Comment 2 Andrey Kolbasenko 2007-04-09 15:07:00 UTC
(In reply to comment #1)
> Well it's not a bug, you can do things like this with recent baselayout
> versions. they allow you to define profiles to start apps multiple times with
> different configurations. So not much like a bug ;)
> 

Ok, i have baselayout-1.12.9 installed, and how can i do this without copy files in  /usr/bin, like cp flow-capture flow.capture.new?
Comment 3 Peter Volkov (RETIRED) gentoo-dev 2007-04-09 15:30:54 UTC
Confirmed. Current init.d script does not allow this. I'll take a look on this.
Comment 4 Peter Volkov (RETIRED) gentoo-dev 2007-04-09 16:19:21 UTC
Thank you for report Andrey. You were right. We should give -p option for s-s-d on start also.
Now fixed. Either reemerge flow-tools or emerge flow-tools-0.68-r4 (which is actually the same ;-)