This solution does n't need any platform specific changes.
Agent checks the file unum_prefix_file.txt under persistent directory and if it exists reads its contents. This file contains the prefix (persistent storage directories).
When this file unum_prefix_file.txt exists, the agents prefixes all the log files (example. /var/log/unum.log etc) with prefixes and creates appropriate directories. And all the log files will be created on persistent storage.
Names for console and stdout are untouched based on the flags and filenames.
This solution does n't need any platform specific changes.
Agent checks the file unum_prefix_file.txt under persistent directory and if it exists reads its contents. This file contains the prefix (persistent storage directories). When this file unum_prefix_file.txt exists, the agents prefixes all the log files (example. /var/log/unum.log etc) with prefixes and creates appropriate directories. And all the log files will be created on persistent storage. Names for console and stdout are untouched based on the flags and filenames.