Bug 752714

Summary: systemd[1]: Failed to read PID file /run/s(n)mbd.pid
Product: [Fedora] Fedora Reporter: Patsev Anton <patsev.anton>
Component: sambaAssignee: Guenther Deschner <gdeschner>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 16CC: asn, boris.nadezhdin, bugzilla-2004, dennis, gdeschner, redhat, shaman007, ssorce
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: samba-3.6.1-77.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-02 12:24:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Patsev Anton 2011-11-10 08:16:20 UTC
Description of problem:

Nov 10 14:15:07 localhost systemd[1]: Failed to read PID file /run/nmbd.pid after start. The service might be broken.
Nov 10 14:15:09 localhost systemd[1]: Failed to read PID file /run/smbd.pid after start. The service might be broken.

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

rpm -q samba systemd
samba-3.6.1-74.fc16.i686
systemd-36-3.fc16.i686

How reproducible:

service smb restart
Redirecting to /bin/systemctl  restart smb.service
Nov 10 15:13:11 localhost systemd[1]: Failed to read PID file /run/smbd.pid after start. The service might be broken.

service nmb restart
Redirecting to /bin/systemctl  restart nmb.service
Nov 10 15:13:38 localhost systemd[1]: Failed to read PID file /run/nmbd.pid after start. The service might be broken.

Additional info:
Fedora release 16 (Verne)

Comment 1 Joachim Jaeckel 2011-12-15 21:54:04 UTC
samba-3.6.1-75.fc16.x86_64

Problem is in /lib/systemd/system/smb.service
PIDFile=/run/smbd.pid

But: smbd creates pidfile as /var/run/smbd.pid

Comment 2 Andreas Schneider 2012-01-02 12:22:01 UTC
This has already been fixed.

* Fri Nov 18 2011 Andreas Schneider <asn> - 1:3.6.1-76
- Fix piddir to match with systemd files.

Comment 3 Boris Nadezhdin 2012-01-31 16:43:36 UTC
i can reproduce this error in Version 3.6.1-77.fc16

Comment 4 Andrey Bondarenko 2012-09-15 10:14:54 UTC
I confirm it in samba-common-3.6.6-92.fc17.1.x86_64. Fix is trivial.

Comment 5 Neil Katin 2013-02-16 05:11:00 UTC
I ran across this issue today in f18, so it still exists.  I started a new bug in the hope that it will eventually get fixed...

It is bug #911819.