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:
Konstantin Olchanski <[log in to unmask]>
Reply To:
Konstantin Olchanski <[log in to unmask]>
Date:
Tue, 8 Jul 2014 15:19:48 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (30 lines)
On Tue, Jul 08, 2014 at 05:35:34PM -0400, Tom H wrote:
> 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.

This rings a bell. A big one. In my F20, /etc/rc.local did not work
until I added the shebang line: #!/bin/sh

The stock rc.local was not executable and did not have the shebang (an empty file, if I remember).

-- 
Konstantin Olchanski
Data Acquisition Systems: The Bytes Must Flow!
Email: olchansk-at-triumf-dot-ca
Snail mail: 4004 Wesbrook Mall, TRIUMF, Vancouver, B.C., V6T 2A3, Canada

ATOM RSS1 RSS2