If a command configured, the argv[0] must be an existing file in the file system. If this file doesn't exist, the command will be ignored. Metalog will not exit with an error. This is to still enable a later to be programmed feature, where metalog learns to reread its configuration (e.g. after SIGHUP), when the missing file (script) has been created.
This change eventually helps to migitate a loop situation, where a log entry leads to endless new log entries because of failing execution of the configured command.
If a command configured, the argv[0] must be an existing file in the file system. If this file doesn't exist, the command will be ignored. Metalog will not exit with an error. This is to still enable a later to be programmed feature, where metalog learns to reread its configuration (e.g. after SIGHUP), when the missing file (script) has been created.
This change eventually helps to migitate a loop situation, where a log entry leads to endless new log entries because of failing execution of the configured command.
Please comment your thoughts!