--- loncom/apachereload 2003/09/30 10:06:48 1.1 +++ loncom/apachereload 2005/07/07 22:26:52 1.2 @@ -8,6 +8,9 @@ # # Change log: # $Log: apachereload,v $ +# Revision 1.2 2005/07/07 22:26:52 albertel +# - suse has apache not httpd +# # Revision 1.1 2003/09/30 10:06:48 foxr # This is a setuid script that allows the www user to issue # /etc/init.d/httpd reload @@ -32,7 +35,10 @@ $ENV{'PATH'}='/bin:/usr/bin:/usr/local/s delete @ENV{qw(IFS CDPATH ENV BASH_ENV)}; # nullify potential taints my $command = "/etc/init.d/httpd reload"; - +my $dist=`$perlvar{'lonDaemons'}/distprobe`; +if ($dist =~ /^(suse|sles)/) { + $command = "/etc/init.d/httpd reload"; +} # Do not print error messages my $noprint=1;