I have a media server running on OpenSolaris that is using Coherence to serve the media to the network. Sometimes I am having trouble on startup as the Coherence service fails to start because the lock file still exists (it was not cleaned up properly). 

I want to know what is the best/neatest/most official way to delete this file on startup before the Coherence service attempts to start.

I thought about writing a quick script and putting it in /etc/rc3.d/ but I have read that OpenSolaris doesn't necessarily run scripts from that location.