LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Location of prog? (http://www.linuxquestions.org/questions/slackware-14/location-of-prog-4175426949/)

tfnc99 09-12-2012 04:46 PM

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:

Didier Spaier 09-12-2012 05:16 PM

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.

Alien Bob 09-12-2012 05:17 PM

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

tfnc99 09-12-2012 05:18 PM

I use Slackware on my secondary-computer. I also have a KVM img somewhere...


All times are GMT -5. The time now is 07:43 PM.