visit the official documentation library of Solaris 10 at Oracle Solaris 10 9/10 Release (http://download.oracle.com/docs/cd/E18752_01/index.html) and have a good read of the other neat features of...
the process might have created a pid file when it run. when you restarted the script, this pid file still exists and was found by the script thus it assumes there are still instances running....