tbrehm
2008-09-03 0711af043c1f07525490b0d3b642463c47462076
server/mods-available/web_module.inc.php
@@ -105,10 +105,18 @@
   // This function is used
   function restartHttpd($action = 'restart') {
      global $app;
      if($action == 'restart') {
         exec('/etc/init.d/apache2 restart');
      $command = '';
      if(is_file('/etc/init.d/httpd')) {
         $command = '/etc/init.d/httpd';
      } else {
         exec('/etc/init.d/apache2 reload');
         $command = '/etc/init.d/apache2';
      }
      if($action == 'restart') {
         exec($command.' restart');
      } else {
         exec($command.' reload');
      }
      
   }