tbrehm
2007-08-19 f73bb61c04c2ab46b7d4950f604e6cf84a42d78c
server/mods-enabled/web_module.inc.php
@@ -60,7 +60,10 @@
       class that contains the function functionname.
      */
      
      $app->modules->registerTableHook('web_domain','mail_module','process');
      $app->modules->registerTableHook('web_domain','web_module','process');
      // Register service
      $app->services->registerService('httpd','web_module','restartHttpd');
      
   }
   
@@ -80,6 +83,18 @@
         break;
      } // end switch
   } // end function
   // This function is used
   function restartHttpd($action = 'restart') {
      global $app;
      if($action == 'restart') {
         exec('/etc/init.d/apache2 restart');
      } else {
         exec('/etc/init.d/apache2 reload');
      }
   }
} // end class