]> git.pld-linux.org Git - packages/athcool.git/blobdiff - athcool.init
- added ATHCOOL_RUN option - by default do not run init script - this is
[packages/athcool.git] / athcool.init
index 847378aab7ba0f0f8a45819dda7f7b8b3f30016f..a44692572aeba52305e57e3afbd5d804da69394c 100644 (file)
@@ -9,13 +9,22 @@
 # Source function library.
 . /etc/rc.d/init.d/functions
 
+ATHCOOL_RUN=no
+
+# Get service config
+[ -f /etc/sysconfig/athcool ] && . /etc/sysconfig/athcool
+
 # See how we were called.
 case "$1" in
   start|restart|force-reload)
-       run_cmd "Starting Athlon Cooling" athcool on
+       if [ "$ATHCOOL_RUN" = "yes" ]; do
+               run_cmd "Starting Athlon Cooling" athcool on
+       done
        ;;
   stop)
-       run_cmd "Stoping Athlon Cooling" athcool off
+       if [ "$ATHCOOL_RUN" = "yes" ]; do
+               run_cmd "Stoping Athlon Cooling" athcool off
+       done    
        ;;
   status)
        athcool stat
This page took 0.056096 seconds and 4 git commands to generate.