the "pfSsh.php playback svc start racoon" works for me, if I execute it from shell (PuTTY from my pc)
when I issue this command, I can see in the system log: "php: pfSsh.php: Forcefully reloading IPsec racoon daemon" and after 3-4 lost pings, it pings again.
Can you post your script, because I have the same problem with ipsec, and trying to solve it. But I'm really rookie in scripting. ::)