SCIENTIFIC-LINUX-USERS Archives

July 2014

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Reply To:
Date:
Tue, 8 Jul 2014 17:35:34 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (18 lines)
On Tue, Jul 8, 2014 at 10:07 AM, Semi <[log in to unmask]> wrote:
>
> Scientific Linux 7 ALPHA rc.local doesn't work. Any solution?
> I tried the following:
> chmod 755 /etc/rc.d/rc.local
> ln -s /lib/systemd/system/rc-local.service
> /etc/systemd/system/multi-user.target.wants/rc-local.service
> systemctl enable rc-local.service

I haven't used EL7 yet so I'm relaying my Fedora 20 experience.

You don't need the "ln -s ..." or the "systemctl ..." (in fact the
latter does the same as the former when you have an "Install" section)
because there's a generator in "/usr/lib/systemd/system-generators/".

You need "/etc/rc.d/rc.local" and it has to be executable. But you
also need a shebang line.

ATOM RSS1 RSS2