perl <<'EOF'
#!/usr/bin/perl
system('/sbin/service httpd graceful');
sleep(1);
print "[*] Apache restarted. Please ensure the service is still running using `status httpd <server>`.\n";
EOF
