Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 209037 - app-misc/dnetc-2.9013.498 init.d script broken
Summary: app-misc/dnetc-2.9013.498 init.d script broken
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Chris Gianelloni (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-05 21:54 UTC by Arthur Hagen
Modified: 2008-04-10 00:49 UTC (History)
0 users

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 Arthur Hagen 2008-02-05 21:54:19 UTC
The /etc/init.d/dnetc script incorrectly sets "-ini /opt/conf.d/dnetc" when /opt/conf.d/dnetc exists.  This file is not in a format understood by dnetc -- it's used by the inetd script itself.  The net result is that existing and correct .ini files in /opt/distributed.net/dnetc.ini or /etc/dnetc.ini will be ignored, and default values used.
According to the man page for dnetc, it should look for /etc/inetd.ini, so I assume this is a pasto.


Reproducible: Always

Steps to Reproduce:
1. emerge dnetc
2. create an /opt/distributed.net/dnetc.ini file
3. start dnetc with the /etc/init.d/dnetc script

The options in /opt/distributed.net/dnetc are ignored, and looking at ps, you can see that it's called with "-ini /etc/conf.d/dnetc", which is wrong.




Quick fix for /etc/init.d/dnetc:

23c23
<       if [ -e /etc/conf.d/dnetc ] ; then
---
>       if [ -e /etc/dnetc.ini ] ; then
25c25
<               DNETOPTS="${DNETOPTS} -ini /etc/conf.d/dnetc"
---
>               DNETOPTS="${DNETOPTS} -ini /etc/dnetc.ini"
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2008-04-10 00:49:04 UTC
OK, I've fixed this in the tree.  Thanks for the bug report!