version 1.40, 2006/12/05 14:46:04
|
version 1.41, 2007/03/28 20:43:37
|
Line 357 if (-e '/var/run/httpd.pid') {
|
Line 357 if (-e '/var/run/httpd.pid') {
|
|
|
if ($pidfile) { |
if ($pidfile) { |
print "lcuseradd Apache restart\n" unless $noprint; |
print "lcuseradd Apache restart\n" unless $noprint; |
open(PID,<$pidfile); |
open(PID,"<$pidfile"); |
my $pid=<PID>; |
my $pid=<PID>; |
close(PID); |
close(PID); |
$pid=~ /(\D+)/; |
$pid=~ /(\D+)/; |
Line 379 sub enable_root_capability {
|
Line 379 sub enable_root_capability {
|
} else { |
} else { |
# root capability is already enabled |
# root capability is already enabled |
} |
} |
|
if ($wwwid == $>) { |
|
print("Failed to become root\n") unless $noprint; |
|
} else { |
|
print("Became root\n") unless $noprint; |
|
} |
return $>; |
return $>; |
} |
} |
|
|