Bug 172541 - problem starting samba due to bug in /etc/rc.d/functions?
problem starting samba due to bug in /etc/rc.d/functions?
Product: Fedora
Classification: Fedora
Component: samba (Show other bugs)
x86_64 Linux
medium Severity medium
: ---
: ---
Assigned To: Jay Fenlason
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2005-11-06 13:39 EST by Jurgen Kramer
Modified: 2014-08-31 19:27 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-01-28 07:20:57 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jurgen Kramer 2005-11-06 13:39:33 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.0.7-1.1.fc3 Firefox/1.0.7

Description of problem:
I cannot start samba properly using the service command (FC4 x86_64).

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

How reproducible:

Steps to Reproduce:
1. service smb start

Actual Results:  Starting SMB services: /etc/init.d/functions: line 83: 31114 Aborted                 $nice $*
Starting NMB services:                                     [  OK  ]

Expected Results:  samba should start normally

Additional info:

After using "service smb start" and starting smbd by hand samba performs normal. Stopping samba with "service smb stop" works without problems.

Re-installing initscripts did not solve the problem. System if fully updated.
Comment 1 Jurgen Kramer 2005-11-13 15:27:28 EST
Some further debugging shows that the line in /etc/rc.d/functions which should
start smbd (with $nice $*) always returns 134 ($? = 134) for smbd while starting
nmbd returns 0 as it should. Very odd problem. Is smbd missing some variables
when started via the startup scripts?
Comment 2 Abu Bakar Al-Idrus 2006-01-18 22:31:08 EST
This bug also occurs in a i386 system:

[root@alidrus cron]# service smb start
Starting SMB services: /etc/init.d/functions: line 83: 26516 Aborted           
     $nice $*
Starting NMB services:                                     [  OK  ]
Comment 3 Abu Bakar Al-Idrus 2006-01-18 22:54:57 EST
I have found a peculiar workaround which seems to work for me:

[root@alidrus cron]# bash --debugger /etc/init.d/smb start
Starting SMB services:                                     [  OK  ]
Starting NMB services:                                     [  OK  ]
[root@alidrus cron]# ps xa|grep "\(smb\|nmbd\)"|grep -v grep
26806 ?        Ss     0:00 smbd -D
26807 ?        S      0:00 smbd -D
26809 ?        Ss     0:00 nmbd -D

I have no idea what this means, but I hope that people who have the same problem
will find this useful.
Comment 4 Jurgen Kramer 2006-01-20 06:02:30 EST
I can confirm that using 'bash --debugger /etc/init.d/smb start' samba starts
Comment 5 Stephen James 2006-02-17 09:19:35 EST
Another bug report against samba suggested " sh /etc/init.d/smb start " and this
seems to work as well. 
Comment 6 Christian Iseli 2007-01-22 07:00:14 EST
This report targets the FC3 or FC4 products, which have now been EOL'd.

Could you please check that it still applies to a current Fedora release, and
either update the target product or close it ?

Comment 7 Jurgen Kramer 2007-01-28 07:20:57 EST
Sorry about that, I thought I already closed this one. No longer relevant.

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