Bug 10942

Summary: /etc/rc.d/rc.local does not get executed.
Product: Mageia Reporter: Dave Hodgins <davidwhodgins>
Component: RPM PackagesAssignee: Colin Guthrie <mageia>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal    
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard: 4alpha1
Source RPM: systemd-206-3.mga4.src.rpm CVE:
Status comment:

Description Dave Hodgins 2013-08-07 00:51:19 CEST
In /lib/systemd/system/rc-local.service
Mageia 3 has
ExecStart=/etc/rc.d/rc.local start

In Magiea 4, it's
ExecStart=/etc/rc.local start

In Mageia 4, neither file exists by default, so if /etc/rc.d/rc.local
is created, and chmoded to be executable, it will no longer be executed.

I think both /etc/rc.d/rc.local (empty file, with execute permissions),
and the symlink /etc/rc.local -> /etc/rc.d/rc.local should be added.




Reproducible: 

Steps to Reproduce:
Dave Hodgins 2013-08-07 00:52:02 CEST

Assignee: bugsquad => mageia

Dave Hodgins 2013-08-07 01:09:13 CEST

Whiteboard: (none) => 4alpha1

Comment 1 Colin Guthrie 2013-08-07 09:46:05 CEST
It's an upstream change to drop the distro specific paths. I can just specify --with-rc-local-script-path-start=/etc/rc.d/rc.local at configure time and we should be fine.

There is also /sbin/halt.local in mga3 but it's default path is the same in newer systemds, so no specific configure args are needed there.
 
I think fixing the path is better as I'd rather not create these legacy files by default if we can avoid it.

This change should be in the next build.
Comment 2 Colin Guthrie 2013-08-07 09:46:22 CEST
Fixed as per comment above.

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