Explorar o código

Include variable dcron_enable.

Michael Schloh von Bennewitz %!s(int64=24) %!d(string=hai) anos
pai
achega
2d7f7a7df0
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      dcron/rc.dcron

+ 5 - 0
dcron/rc.dcron

@@ -3,10 +3,15 @@
 ##  rc.dcron -- Run-Commands for DCRON Daemon
 ##
 
+%config
+    dcron_enable="yes"
+
 %start -p 200 -u root
+    opServiceEnabled dcron || exit 0
     @l_prefix@/sbin/crond
 
 %stop -p 200 -u root
+    opServiceEnabled dcron || exit 0
     if [ -f @l_prefix@/var/dcron/dcron.pid ]; then
         kill -TERM `cat @l_prefix@/var/dcron/dcron.pid`
     fi