Changeset 5141

Show
Ignore:
Timestamp:
03/12/08 21:48:54 (8 months ago)
Author:
jwrdegoede
Message:

Modify initscript chkconfig comments to not make the service start by default, modify sensors-detect to enable the service on boot once configured and to start it at the end of sensors-detect

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lm-sensors/trunk/prog/detect/sensors-detect

    r5139 r5141  
    57145714  } 
    57155715 
     5716  if (-x "/sbin/service" && -f "/etc/init.d/lm_sensors" && 
     5717      -f "/var/lock/subsys/lm_sensors") { 
     5718    system("/sbin/service", "lm_sensors", "stop"); 
     5719  } 
     5720 
    57165721  initialize_kernel_version(); 
    57175722  initialize_conf; 
     
    59895994    if (-x "/sbin/insserv" && -f "/etc/init.d/lm_sensors") { 
    59905995      system("/sbin/insserv", "/etc/init.d/lm_sensors"); 
     5996    } elsif (-x "/sbin/chkconfig" && -f "/etc/init.d/lm_sensors") { 
     5997      system("/sbin/chkconfig", "lm_sensors", "on"); 
     5998      if (-x "/sbin/service") { 
     5999        system("/sbin/service", "lm_sensors", "start"); 
     6000      } 
    59916001    } else { 
    59926002      print "You should now start the lm_sensors service to load the required\n". 
  • lm-sensors/trunk/prog/init/lm_sensors.init

    r4378 r5141  
    11#!/bin/sh 
    22# 
    3 # chkconfig: 2345 26 74 
     3# chkconfig: - 26 74 
    44# description: sensors is used for monitoring motherboard sensor values. 
    55# config: /etc/sysconfig/lm_sensors