[CentralOH] SingleInstance Recipe (Windows)

m g miles.groman at gmail.com
Wed Aug 4 03:04:22 CEST 2010


For a simple solution on a UNIX box, I would write the process id to,
or at least touch, /var/run/myapp.pid.  If the pid file already
exists, I know that the application is already running.  Of course,
the possibility exists that something happened to the application, and
it was not able to remove the pid file.... just delete the pid file if
you are sure its not running: ps ax | grep $(cat /var/run/myapp.pid)


More information about the CentralOH mailing list