wrapper.event.<event_name>.command.new_process_group

Kompatibel :3.5.47
Editionen :Professional EditionStandard Edition (Not Supported)Community Edition (Not Supported)
Betriebssysteme :WindowsMac OSXLinuxIBM AIXFreeBSDHP-UXSolarisIBM z/Linux

This property is used to specify whether or not the command should be started in a new process group.

The default value is "FALSE", meaning the command will be started in the same group as the Wrapper.

This basically affects how signals are received by the command.

On Windows, if the command is started in the same process group as the Wrapper, a CTRL+C in the console where the Wrapper is running will also be received by the command. On the other hand, if the command is started in a new group, the command will ignore the CTRL+C.

On UNIX systems it is possible to either send a signal to a specific process (for example, the Wrapper or the command) or to a process group. Signals sent via keyboard shortcuts, 'killpg', or 'kill' with a negative PID are sent to a process group. If the command is launched in its own process group, it will not receive the signals sent to the Wrapper process group.

Example: (start the command in a new process group to make sure it's not interrupted by a CTRL+C)
wrapper.event.wrapper_stop.command.argv.1=/usr/bin/mycleanup
wrapper.event.wrapper_stop.command.new_process_group=TRUE

Verweis: Ereignisbefehle

Der Java Service Wrapper bietet einen kompletten Satz an Konfigurationseigenschaften an, die es Ihnen ermöglichen, dass der Wrapper genau Ihre Bedürfnisse abdeckt. Sehen Sie bitte in die Dokumentation bezüglich der einzelnen Eigenschaften, um alle Möglichkeiten über die obengenannten Beispiele hinaus zu sehen.