$pid=`cat $pid_file`;
chop($pid);
if ($cmd eq "stop") {
print("Stopping ${name}\n");
}
kill(15, $pid);
unlink($pid_file);
$date = `date`;
chop($date);
print "Resin $name $cmd at $date\n";
# create a keepalive socket
# when the wrapper dies, the httpd class will detect that and
# close gracefully