hvisage / metalog

metalog is a syslog replacement that allows regular expresion matching
GNU General Public License v2.0
35 stars 10 forks source link

Ignore invalid commmand #26

Closed m-kress closed 12 months ago

m-kress commented 12 months ago

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!