Re: rc.local not loaded on boot



On 26 Mar 2012 at 10:00, Aaron Konstam wrote:

Subject: Re: rc.local not loaded on boot
From: Aaron Konstam <akonstam@xxxxxxxxxxxxx>
To: users@xxxxxxxxxxxxxxxxxxxxxxx
Date sent: Mon, 26 Mar 2012 10:00:04 -0500
Send reply to: Community support for Fedora users
<users@xxxxxxxxxxxxxxxxxxxxxxx>

On Mon, 2012-03-26 at 11:18 +1000, Michael D. Setzer II wrote:
On 26 Mar 2012 at 1:57, Ed Greshko wrote:

Date sent: Mon, 26 Mar 2012 01:57:58 +0800
From: Ed Greshko <Ed.Greshko@xxxxxxxxxxx>
To: Community support for Fedora users
<users@xxxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: rc.local not loaded on boot
Send reply to: Community support for Fedora users
<users@xxxxxxxxxxxxxxxxxxxxxxx>
On 03/26/2012 01:34 AM, David G. Miller wrote:
You need to enable the service through systemctl. Here's a long
discussion that looks at quite a few of the things that can
affect getting rc.local functional.
Quite a bit more to it than just putting a script there:

Well....

I did nothing else other than create a /etc/rc.d/rc.local ...

[egreshko@f16-1 rc.d]$ ll
total 36
drwxr-xr-x. 2 root root 4096 Mar 8 01:44 init.d
drwxr-xr-x. 2 root root 4096 Mar 8 01:44 rc0.d
drwxr-xr-x. 2 root root 4096 Mar 8 01:44 rc1.d
drwxr-xr-x. 2 root root 4096 Mar 8 01:44 rc2.d
drwxr-xr-x. 2 root root 4096 Mar 8 01:44 rc3.d
drwxr-xr-x. 2 root root 4096 Mar 8 01:44 rc4.d
drwxr-xr-x. 2 root root 4096 Mar 8 01:44 rc5.d
drwxr-xr-x. 2 root root 4096 Mar 8 01:44 rc6.d
-rwxr-xr-x. 1 root root 39 Mar 25 23:36 rc.local

with

#!/bin/sh -e

#exit 0

touch /tmp/XXXX


And it on reboot a file with name XXXX was in /tmp

[egreshko@f16-1 rc.d]$ ll /tmp/XXXX
-rw-r--r--. 1 root root 0 Mar 25 23:37 /tmp/XXXX

what does
systemctl status rc-local.service shows?
try
systemctl enable rc-local.service show?

both the above statements fail with and error messagwe : No such file
or directory.

On one of my machines that it works just fine on.

/etc/rc.d/rc.local file

#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
freshclam -c 2 -d


systemctl status rc-local.service


rc-local.service - /etc/rc.d/rc.local Compatibility
Loaded: loaded (/lib/systemd/system/rc-local.service;
static)
Active: active (running) since Tue, 27 Mar 2012 01:50:06
+1000; 2min 52s ago
Process: 4136 ExecStart=/etc/rc.d/rc.local start
(code=exited, status=0/SUCCESS)
Main PID: 4139 (freshclam)
CGroup: name=systemd:/system/rc-local.service
└ 4139 freshclam -c 2 -d




--
======================================================================
= Get hold of portable property. -- Charles Dickens, "Great
Expectations"
======================================================================
= Aaron Konstam telephone: (210) 656-0355 e-mail:
akonstam@xxxxxxxxxxxxx

--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have
a question? Ask away: http://ask.fedoraproject.org


+----------------------------------------------------------+
Michael D. Setzer II - Computer Science Instructor
Guam Community College Computer Center
mailto:mikes@xxxxxxxxxxxxxxxx
mailto:msetzerii@xxxxxxxxx
http://www.guam.net/home/mikes
Guam - Where America's Day Begins
G4L Disk Imaging Project maintainer
http://sourceforge.net/projects/g4l/
+----------------------------------------------------------+

http://setiathome.berkeley.edu (Original)
Number of Seti Units Returned: 19,471
Processing time: 32 years, 290 days, 12 hours, 58 minutes
(Total Hours: 287,489)

BOINC@HOME CREDITS
SETI 11986397.250517 | EINSTEIN 7559121.249852
ROSETTA 4350953.015650 | ABC 11898100.773409

--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Relevant Pages

  • Re: undo rm -rf *
    ... about a simple script something like this? ... To unsubscribe or change subscription options: ... Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines ...
    (Fedora)
  • Re: kindof fixed - Re: vnc not into gnome but Xfce but still not working
    ... Nothing is wrong with the default script. ... To unsubscribe or change subscription options: ... Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct ... Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have ...
    (Fedora)
  • Re: crontab - scripts not exiciting.
    ... right peissions it wont execute ... I have a script that needs to run from a cron job. ... To unsubscribe or change subscription options: ... Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines ...
    (Fedora)
  • Re: Minimum Required RPM Packages for Running Fedora
    ... minimal) and then I will publish the 95-package list + a simple script ... To unsubscribe or change subscription options: ... Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines ...
    (Fedora)
  • Re: messages log is empty
    ... # systemctl status rsyslog.service ... To unsubscribe or change subscription options: ... Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines ...
    (Fedora)