Description of problem: It might be nice to have a default init script for running flow-capture as a system service. I've attached an init script and a /etc/sysconfig config file. The config file is similar to what I'm using, perhaps there is a better "normal" configuration. Version-Release number of selected component (if applicable): flow-tools-0.68-2.fc4
Created attachment 120196 [details] Init script
Created attachment 120197 [details] sysconfig file
I prefer this stuff be started from non-root user. Can you borrow some bits from another packages and update your init script? Thanks in advance :) (I wanted to do this myself but don't have much time now)
FC3 and FC4 have now been EOL'd. Please check the ticket against a current Fedora release, and either adjust the release number, or close it if appropriate. Thanks. Your friendly BZ janitor :-)
Moving to devel as I do mean to address this some day.
Paul - Since we're talking about getting this updated and into EPEL, seems like a good time to address this as well. I've put a new srpm here: http://www.cora.nwra.com/~orion/fedora/flow-tools-0.68.1-2.fc8.src.rpm This package creates a flowtools user/group and starts the service under that user.
Do you know if approach from here is compatible with EPEL? http://fedoraproject.org/wiki/PackageUserCreation I, actually, have flow-tools user registered in http://fedoraproject.org/wiki/PackageUserRegistry (uid/gid 40)
(In reply to comment #7) > Do you know if approach from here is compatible with EPEL? > http://fedoraproject.org/wiki/PackageUserCreation I can't see why it wouldn't be. Worked fine for me on my CentOS5 test machine. > I, actually, have flow-tools user registered in > http://fedoraproject.org/wiki/PackageUserRegistry (uid/gid 40) This is only applicable if you want to user fedora-usermgmt. I'll leave that decision up to you.
So, if this one http://palevo.sgu.ru/mockbuild/7/SRPMS/flow-tools-0.68.1-2.fc7.src.rpm works for you on CentOS5, then I'm going to commit this one (and I still haven't fixed that bug I was talking about, silly me).
Well, you don't need: Requires(pre): shadow-utils with fedora-usermgmt. I believe that is what: %{?FE_USERADD_REQ} essentially does. I'll take a look in the morning, but it should be good.
Need to change the default username in the init script to "flow-tools" from "flowtools", but otherwise looks good and works on EL5.
OK, I cvscommitted it in devel, haven't done any tag or build yet but will do soon
flow-tools-0.68.3-1.fc7 has been pushed to the Fedora 7 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update flow-tools'
flow-tools-0.68.3-1.fc8 has been pushed to the Fedora 8 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update flow-tools'
flow-tools-0.68.3-1.fc8 has been pushed to the Fedora 8 stable repository. If problems still persist, please make note of it in this bug report.
flow-tools-0.68.3-1.fc7 has been pushed to the Fedora 7 stable repository. If problems still persist, please make note of it in this bug report.