How do I change the PID file directory?
Deephaven uses standard Linux PID (Process ID) files, which are stored by default in the directory /etc/deephaven/run.
This guide demonstrates how to change the PID file location. The examples assume that the new directory is /etc/deephaven/pidfileDir, so adjust the commands accordingly for the desired directory.
Change the PID file directory
First, stop all Deephaven processes.
If necessary, create the new PID file directory (pidfileDir, in this case) and ensure that the new PID file directory is writable by irisadmin:dbmergegrp.
Update the host configuration to specify the new PID file directory:
Add an environment variable to the hostconfig file:
Perform the rest of the steps as irisadmin.
Update the monit files to specify the new location. Some of these files are links (the auth and conf ones), and any substitute commands must ensure that the backing files are updated rather than adding or replacing them with new files created in the local directory, or upgrades will remove the changes. For example:
The sed commands are editing the files to replace /etc/deephaven/run with the new path.
Edit iris-environment.prop to add:
To edit a properties file you will need to export the file, make edits, and import the changed file. The example below uses an arbitrary directory (/tmp/propfiles):
Reload monit’s configuration and restart it.