Hosted by:
SourceForge
Get Firefox!

wrapper.pidfile Property
wrapper.pidfile Property
Configuration Property Overview
wrapper.pidfile

File to write the Wrapper process ID to. If set, a file containing the pid of the Wrapper process will be written to the specified location when the process is launched. The file will be deleted when the Wrapper process has terminated. This property is not set by default. Common values are ./myapp.pid or /var/run/myapp.pid.

NOTE

If a second instance of the Wrapper is started, the pid file of the first instance will be overwritten by the second instance. This is done to avoid problems with stale pid files preventing the wrapper from starting.

On Unix/Linux platforms, the sh script which ships with the Wrapper will prevent multiple copies of the Wrapper from running for the same application. It is possible to run multiple copies of the Wrapper on the same machine if they are each being used to launch a different application.

In most cases, users will not need to set this property themselves. The Unix sh script which ship with the Wrapper sets this property from the command line and then makes use of the pid in future invocations of the script. See the sh.script.in file in the src/bin directory for an example.

The property is also available in the Windows version as some users have requested easy access to the pid for use by profiling tools.

Example:
wrapper.pidfile=./myapp.pid

NOTE

Reloading the Wrapper configuration will have no effect on the value of this property. Changes will not take effect until the Wrapper has been restarted.

by Leif Mortenson

last modified: