ocean.util.app.ext.PidLockExt

Application extension to try to lock the pid file.

If [PidLock] section with the path member is found in the config file, application will try to lock the file specified by path and it will abort the execution if that fails, making sure only one application instance per pid-lock file is running.

The pid-lock file contains pid of the application that locked the file, and it's meant for the user inspection - the locking doesn't depend on this data.

This extension should be use if it's critical that only one instance of the application is running (say, if sharing the working directory between two instances will corrupt data).

Members

Classes

PidLockExt
class PidLockExt

ditto

Meta

License

Boost Software License Version 1.0. See LICENSE_BOOST.txt for details. Alternatively, this file may be distributed under the terms of the Tango 3-Clause BSD License (see LICENSE_BSD.txt for details).