Dynatrace-AppMon-Puppet icon indicating copy to clipboard operation
Dynatrace-AppMon-Puppet copied to clipboard

The PID file shouldn't be created in a temporary folder

Open tux-o-matic opened this issue 7 years ago • 0 comments

In the init.d service script, there is a hard coded value for DT_PIDFILE_DIR whichis /tmp. Writing the pid file to a temporary folder is a dangerous thing, there is no persistency guarantee and a system or administrator could easily delete the PID file. This would lead to a situation where the service seams dead when it is in fact still running, Puppet would then try to restart it and face port conflict.

tux-o-matic avatar Aug 07 '17 07:08 tux-o-matic