LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 09-12-2012, 05:46 PM   #1
tfnc99
Member
 
Registered: Sep 2012
Posts: 55

Rep: Reputation: Disabled
Location of prog?


After doing sensors-detect, it said to move a file from prog to /etc/init.d to load the moduals at startup. Where is this prog? I cant find it D:
 
Old 09-12-2012, 06:16 PM   #2
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,653

Rep: Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233
Knowing the name of that file, "locate <filename>" should tell you where it lies now, provided your locate database be updated first.

Out of curiosity, why ask this question in the Slackware forum as, according to your signature, you are running Kubuntu 12.04?

Bear in mind that in Slackware, /etc/init.d is a symlink to /etc/rc.d/init.d and this place is provided mainly for commercial applications which expect to sit there.

The usual way to start a program not included in Slackware at start up is to put a script to launch it in /etc/rc.d, make it executable, then add lines to run that script in /etc/rc.d/rc.local.
 
Old 09-12-2012, 06:17 PM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,379

Rep: Reputation: Disabled
You can download that init script from the lm_sensors web site, it is not included with Slackware:
Code:
# wget http://www.lm-sensors.org/export/6070/lm-sensors/trunk/prog/init/lm_sensors.init -O /etc/rc.d/rc.lm_sensors
chmod +X /etc/rc.d/rc.lm_sensors
And then add these lines to your /etc/rc.d/rc.local script:
Code:
if [ -x /etc/rc.d/rc.lm_sensors ]; then
  echo "Starting lm_sensors: /etc/rc.d/rc.lm_sensors start
  /etc/rc.d/rc.lm_sensors start
fi
If you ran sensors-detect it will have created a configuration file /etc/sysconfig/lm_sensors which is the configuration file for this init script.

Eric
 
Old 09-12-2012, 06:18 PM   #4
tfnc99
Member
 
Registered: Sep 2012
Posts: 55

Original Poster
Rep: Reputation: Disabled
I use Slackware on my secondary-computer. I also have a KVM img somewhere...
 
  


Reply


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
A script is running from an unknown location.how we can find its exact location. saurav23june Linux - Newbie 5 05-15-2012 05:27 AM
cd prog ahmed gamal Linux - Software 1 11-14-2005 07:55 AM
apache: location in location eantoranz Linux - Networking 2 08-08-2005 10:37 PM
I want to start a prog from another prog but not as child grupoapunte Programming 5 05-23-2005 06:37 PM
Better buying "advanced linux prog" or "unix advanced prog" Dominik Programming 3 12-31-2003 02:11 PM


All times are GMT -5. The time now is 11:47 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration