summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
7909876)
Changed files:
sensors_modules.init -> 1.3
. /etc/sysconfig/sensors_modules
fi
. /etc/sysconfig/sensors_modules
fi
-RETVAL=0
-# See how we were called.
-case "$1" in
- start)
# Check if the service is already running?
if [ ! -f /var/lock/subsys/sensors_modules ]; then
if [ -z "$BUS" ] || [ -z "$CHIP" ]; then
# Check if the service is already running?
if [ ! -f /var/lock/subsys/sensors_modules ]; then
if [ -z "$BUS" ] || [ -z "$CHIP" ]; then
else
msg_already_running "sensors modules"
fi
else
msg_already_running "sensors modules"
fi
if [ -f /var/lock/subsys/sensors_modules ]; then
msg_stopping "sensors modules"
if [ -f /var/lock/subsys/sensors_modules ]; then
msg_stopping "sensors modules"
else
msg_not_running "sensors modules"
fi
else
msg_not_running "sensors modules"
fi
+}
+
+RETVAL=0
+# See how we were called.
+case "$1" in
+ start)
+ start
+ ;;
+ stop)
+ stop
;;
status)
sensors
;;
restart|force-reload)
;;
status)
sensors
;;
restart|force-reload)
- $0 stop
- $0 start
- exit $?
;;
*)
msg_usage "$0 {start|stop|restart|force-reload|status}"
;;
*)
msg_usage "$0 {start|stop|restart|force-reload|status}"