LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-04-2012, 06:58 PM   #1
RudyMartin
Member
 
Registered: Nov 2011
Location: Argentina
Distribution: Slackware, Debian
Posts: 38

Rep: Reputation: Disabled
rc.local doesnt run


I am trying to run /usr/local/bin/noip2 from rc.local.

as per this post: http://www.mombu.com/gnu_linux/slack...1-1456194.html I have tried placing echoes in rc.M, and even inside the

if [ -x /etc/rc.d/rc.local ]; then
echo sale o no sale ??
. /etc/rc.d/rc.local
fi

and I can see it during bootup. but if I place an echo in rc.local I don't.

rudy@darkstar:/etc$ ls -la rc.local
-rw-r--r-- 1 root root 23 Jan 4 21:50 rc.local
rudy@darkstar:/etc$ cat rc.local
. /usr/local/bin/noip2
rudy@darkstar:/etc$

also tried without the dot. tried with chmod+x. any clues?

thanks

edit: sorry I wanted to post it on Slackware subforum.

Last edited by RudyMartin; 01-04-2012 at 07:01 PM.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 01-04-2012, 08:45 PM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
You have created a /etc/rc.local file, rather than using /etc/rc.d/rc.local.
Just add your line to /etc/rc.d/rc.local
 
2 members found this post helpful.
Old 01-04-2012, 08:48 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,321
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
A long time ago, when I was green in Linux, I ran it from rc.local like this. I'm afraid it betrays my experience with DOS batch files and it doesn't have Linux-y scripting language, but it worked:

Code:
cd /usr/local/bin
noip2
cd
 
Old 01-05-2012, 01:01 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Moved: This thread is more suitable in Slackware and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 01-05-2012, 01:57 AM   #5
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 875

Rep: Reputation: 282Reputation: 282Reputation: 282
1. The script that calls rc.local only calls it if the executable bit is set (the -x test)
2. The rc.local script as allend states is /etc/rc.d/rc.local not /etc/rc.local
 
3 members found this post helpful.
Old 01-05-2012, 03:36 PM   #6
RudyMartin
Member
 
Registered: Nov 2011
Location: Argentina
Distribution: Slackware, Debian
Posts: 38

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by allend View Post
You have created a /etc/rc.local file, rather than using /etc/rc.d/rc.local.
Just add your line to /etc/rc.d/rc.local
Quote:
Originally Posted by wildwizard View Post
1. The script that calls rc.local only calls it if the executable bit is set (the -x test)
2. The rc.local script as allend states is /etc/rc.d/rc.local not /etc/rc.local
that helped. there's a rc.local lying on etc and I thought it was the real thing. didn't noticed the path in rc.M

and thank you to the mod who moved the thread.
 
  


Reply



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
[SOLVED] snmpwalk doesnt work on local ip. Vimuth Linux - Server 2 12-18-2010 01:58 AM
DNSMasq - dnslookup build.domain.local works but ping build.domain.local doesnt mustaghattack Linux - Server 2 03-01-2010 09:00 PM
clamd upgradation in remote mach through local mac by script to be run on local mach Narayandutt Programming 3 11-29-2006 10:00 AM
MEPIS doesnt run, can somebody help? jonno102 MEPIS 3 10-12-2006 12:14 PM
ftp doesnt accept non-local connections rusium Linux - Networking 3 05-25-2003 11:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

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