Bug 10942 - /etc/rc.d/rc.local does not get executed.
Summary: /etc/rc.d/rc.local does not get executed.
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Colin Guthrie
QA Contact:
URL:
Whiteboard: 4alpha1
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-07 00:51 CEST by Dave Hodgins
Modified: 2013-08-07 09:46 CEST (History)
0 users

See Also:
Source RPM: systemd-206-3.mga4.src.rpm
CVE:
Status comment:


Attachments

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


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