Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 06-24-2007, 06:25 AM   #1
LQ Newbie
Registered: Nov 2006
Location: Latvia
Distribution: Slackware
Posts: 15

Rep: Reputation: 0
rc.local isn't executed at boot time

I wanted some shell commands to be executed at boot time, so I put them in rc.local file (/etc/rc.d/rc.local). But the script isn't being executed at startup. The same is with the rc.local_shutdown. What's wrong and how can it be fixed? I'm using Slackware 11.
Old 06-24-2007, 06:38 AM   #2
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,172

Rep: Reputation: 52
post your rc.local
Old 06-24-2007, 06:42 AM   #3
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 635

Rep: Reputation: 35
Have you remembered to make it executable?

chmod 755 /etc/rc.d/rc.local
chmod 755 /etc/rc.d/rc.local_shutdown
Remember that the script must begin with #!/bin/sh
echo "This is rc.local - put your local commands here..."
Old 06-24-2007, 06:48 AM   #4
LQ Newbie
Registered: Nov 2006
Location: Latvia
Distribution: Slackware
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks Yalla-One, chmod'ing fixed it.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the difference between /etc/init.d/boot.local and /etc/rc.d/boot.local..? mozart Linux - Newbie 3 06-13-2007 06:50 PM
Cron jobs not executed at right time(persistent UTC?) baddah Linux - Newbie 2 03-29-2006 11:27 PM not executed on boot up rickenbacherus Debian 1 03-14-2006 01:04 PM
Commands executed at boot time Johnburrell Linux From Scratch 3 09-18-2005 01:56 PM
local time alaios Debian 1 12-08-2004 01:08 PM

All times are GMT -5. The time now is 01:01 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration