Bug 23811 - Unexpanded macros in service files
Summary: Unexpanded macros in service files
Status: RESOLVED DUPLICATE of bug 23796
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-06 13:33 CET by Juan Magallon
Modified: 2018-11-08 09:08 CET (History)
1 user (show)

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


Attachments

Description Juan Magallon 2018-11-06 13:33:17 CET
After latest update both nmb.service and smb.service fail to start:
sus:~# systemctl status smb
● smb.service - Samba SMB Daemon
   Loaded: error (Reason: Exec format error)
   Active: inactive (dead)
     Docs: man:smbd(8)
           man:samba(7)
           man:smb.conf(5)

Nov 06 13:22:49 asus systemd[1]: /usr/lib/systemd/system/smb.service:11: Not an absolute path, ignoring: @PIDDIR@/smbd.pid
Nov 06 13:22:49 asus systemd[1]: /usr/lib/systemd/system/smb.service:13: Path '-@SYSCONFDIR@/sysconfig/samba' is not absolute, ig>
Nov 06 13:22:49 asus systemd[1]: /usr/lib/systemd/system/smb.service:14: Executable path is not absolute: @SBINDIR@/smbd --foregr>
Nov 06 13:32:11 asus systemd[1]: /usr/lib/systemd/system/smb.service:11: Not an absolute path, ignoring: @PIDDIR@/smbd.pid
Nov 06 13:32:11 asus systemd[1]: /usr/lib/systemd/system/smb.service:13: Path '-@SYSCONFDIR@/sysconfig/samba' is not absolute, ig>
Nov 06 13:32:11 asus systemd[1]: /usr/lib/systemd/system/smb.service:14: Executable path is not absolute: @SBINDIR@/smbd --foregr>

It looks like there are unsubstituted macros @....@ in service files:

[Service]
Environment=KRB5CCNAME=FILE:/run/samba/krb5cc_samba
Type=notify
NotifyAccess=all
PIDFile=@PIDDIR@/smbd.pid
LimitNOFILE=16384
EnvironmentFile=-@SYSCONFDIR@/sysconfig/samba
ExecStart=@SBINDIR@/smbd --foreground --no-process-group $SMBDOPTIONS
ExecReload=/bin/kill -HUP $MAINPID
LimitCORE=infinity
@systemd_smb_extra@
Comment 1 Marja Van Waes 2018-11-08 09:08:41 CET
Hi Juan,

Thanks for the report.

It was probably hard to find, because that bug report was originally about empty files, but James Kerr reported this, too, in bug #23796, comment #5

I think it is better to keep bug 23796 report for this new issue, because it is so closely related to the original issue in that report

*** This bug has been marked as a duplicate of bug 23796 ***

Status: NEW => RESOLVED
Resolution: (none) => DUPLICATE
CC: (none) => marja11


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