Open nqb opened 6 years ago
I believe we did put maxdepth since the issue we were looking to fix involved the PF temp files (created by the perl lib we use) and they are put in /tmp/ directly.
We would have to see if it could be normal to have more than the default $MAX_TMP_FILES if we remove maxdepth and adjust it accordingly
@julsemaan: could you refer the issue you mentioned ?
This comes from a time where we weren't tracking everything via Github issues
You could see point 1 of the following section in the private wiki: https://wiki.inverse.ca/focus/PacketFence/StabilityOfOurDeployments#Ideas_for_better_stability
On a setup, I got many files created in
/tmp
with following layout:check-tmp.sh
didn't detect that issue due tomaxdepth
andtype
options.I think we could remove
-maxdepth 1
option in: https://github.com/inverse-inc/packetfence-monitoring-scripts/blob/a358f696b826bd92fd85a5028d79d3c925ad39e9/scripts/check-tmp.sh#L6because we will always search for many files in
/tmp
. But I'm sure this option has not been put here by chance.What's your opinion on this ?