Bug 574775 - /etc/init.d/netplugd doesn't start netplug
Summary: /etc/init.d/netplugd doesn't start netplug
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: net-tools
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Jiri Popelka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 581810 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-18 14:26 UTC by Albert Strasheim
Modified: 2010-06-03 18:15 UTC (History)
4 users (show)

Fixed In Version: net-tools-1.60-100.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-06-03 18:15:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Albert Strasheim 2010-03-18 14:26:39 UTC
Description of problem:

/etc/init.d/netplug fails to run the daemon because it does the check

[ -f $config ] || exit 6

which should be

[ ! -f $config ] || exit 6

Version-Release number of selected component (if applicable):

net-tools-1.60-99.fc12.x86_64

How reproducible:


Steps to Reproduce:
1. /etc/init.d/netplugd start
2.
3.
  
Actual results:

Nothing happens.

Expected results:

netplugd should start.

Additional info:

Comment 1 Jiri Popelka 2010-03-19 10:56:15 UTC
Hi Albert,

thanks for the report.

I still think the condition ([ -f $config ] || exit 6) is right.
The '||' is logical OR, so the script does the second part ('exit 6') only when the first part ([ -f $config ]) is NOT true.

See http://fedoraproject.org/wiki/Packaging:SysVInitScript

So there has to be other problem why netplug is not started. I'll investigate this further.

Comment 2 Jiri Popelka 2010-03-19 11:11:41 UTC
I found the problem.
$config has value
'/etc/netplug/netplugd.conf'
but the config file is in
'etc/netplug.d/netplugd.conf'

Comment 3 Albert Strasheim 2010-03-19 11:27:40 UTC
Yes, you're right. I've been starting at too much bash lately and got confused.

Comment 4 Fedora Update System 2010-03-19 11:31:01 UTC
net-tools-1.60-100.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/net-tools-1.60-100.fc12

Comment 5 Fedora Update System 2010-03-23 02:09:36 UTC
net-tools-1.60-100.fc12 has been pushed to the Fedora 12 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 net-tools'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/net-tools-1.60-100.fc12

Comment 6 Jiri Popelka 2010-04-13 10:27:02 UTC
*** Bug 581810 has been marked as a duplicate of this bug. ***

Comment 7 Fedora Update System 2010-06-03 18:15:08 UTC
net-tools-1.60-100.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.