Bug 23796 - Samba - smb.service and nmb.service don't start (was: smb.service and nmb.service are empty files)
Summary: Samba - smb.service and nmb.service don't start (was: smb.service and nmb.ser...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Bruno Cornec
QA Contact:
URL:
Whiteboard:
Keywords:
: 23811 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-11-01 14:54 CET by James Kerr
Modified: 2018-11-10 11:24 CET (History)
4 users (show)

See Also:
Source RPM: samba-4.9.1-1.mga7.src.rpm
CVE:
Status comment:


Attachments

Description James Kerr 2018-11-01 14:54:07 CET
A fresh install of samba on cauldron  

systemctl reported that the smb.service was "masked"
and so it was impossible to start smb

unmasking smb.service made no difference

The files:

/usr/lib/systemd/system/smb.service
/usr/lib/systemd/system/nmb.service

were empty files

I copied the two service files from an mga6 system and samba is now functioning correctly
Comment 1 Marja Van Waes 2018-11-03 08:58:18 CET
Assigning to the registered maintainer.

CC: (none) => marja11
Assignee: bugsquad => bgmilne

Comment 2 Marja Van Waes 2018-11-03 09:00:05 CET
And CC'ing the last committer.

CC: (none) => bruno

Comment 3 Bruno Cornec 2018-11-06 02:07:55 CET
The name of the template files changed in this version, and so the files generated were empty. I've fixed that and I'm making a build test before pushing it again.

Assignee: bgmilne => bruno
Status: NEW => ASSIGNED

Comment 4 Bruno Cornec 2018-11-06 02:36:48 CET
Fixed with samba-4.9.1-2.mga7 currently building
Comment 5 James Kerr 2018-11-06 15:42:53 CET
This update does create the service files. However, there seems to be a problem:

# systemctl status smb
● smb.service - Samba SMB Daemon
   Loaded: error (Reason: Exec format error)
   Active: inactive (dead)
    
/usr/lib/systemd/system/smb.service:14: Executable path is not absolute: @SBINDIR@/smbd 

/usr/lib/systemd/system/smb.service:11: Not an absolute path, ignoring: @PIDDIR@/smbd.pid

/usr/lib/systemd/system/smb.service:13: Path '-@SYSCONFDIR@/sysconfig/samba' is not absolute 



systemctl status nmb
● nmb.service - Samba NMB Daemon
   Loaded: error (Reason: Exec format error)
   Active: inactive (dead)
     Docs: man:nmbd(8)
           man:samba(7)
           man:smb.conf(5)

/usr/lib/systemd/system/nmb.service:13: Executable path is not absolute: @SBINDIR@/nmbd 

/usr/lib/systemd/system/nmb.service:11: Not an absolute path, ignoring: @PIDDIR@/nmbd.pid

/usr/lib/systemd/system/nmb.service:12: Path '-@SYSCONFDIR@/sysconfig/samba' is not absolute
Comment 6 Thomas Backlund 2018-11-06 20:52:45 CET
Yeah, I think the correct thing would be to see if make_install can install the service files properly and dont need the cat/sed hack in spec anymore

CC: (none) => tmb

Marja Van Waes 2018-11-08 09:03:00 CET

Summary: Samba - smb.service and nmb.service are empty files => Samba - smb.service and nmb.service don't start (was: smb.service and nmb.service are empty files)

Comment 7 Marja Van Waes 2018-11-08 09:08:41 CET
*** Bug 23811 has been marked as a duplicate of this bug. ***

CC: (none) => jamagallon

Comment 8 Bruno Cornec 2018-11-09 01:36:39 CET
@Thomas, you're right, there is now a possibility to do the right stuff for systemd in the configure options. I'm making tests with that to build it again and hopefully this time the unit files will be correctly handled.
Comment 9 Bruno Cornec 2018-11-10 02:04:52 CET
samba-4.9.1-3.mga7 on its way to updates_testing with the new usage of option --systemd-install-services of configure to manage the systemd unit files. They look correct now.
Comment 10 James Kerr 2018-11-10 11:24:54 CET
With 4.9.1-3 samba is working normally for me. Thanks.

Closed as fixed

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED


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