logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

cdist-type__check_messages - Check messages for pattern and execute command on match.

Authors

       Ander Punnar <ander-at-kvlt-dot-ee>

Copying

       Copyright (C) 2019 Ander Punnar. You can redistribute it and/or modify it under  the  terms  of  the  GNU
       General  Public License as published by the Free Software Foundation, either version 3 of the License, or
       (at your option) any later version.

Description

       Check messages for pattern and execute command on match.

       This  type  is useful if you chain together multiple related types using dependencies and want to restart
       service if at least one type changes something.

       For more information about messages see cdistmessaging.

       For more information about dependencies and execution order see cdistmanifest documentation.

Examples

          __check_messages munin \
              --pattern '^__(file|link|line)/etc/munin/' \
              --execute 'service munin-node restart'

Name

       cdist-type__check_messages - Check messages for pattern and execute command on match.

Required Parameters

pattern
              Extended regular expression pattern for search (passed to grep-E).

       execute
              Command to execute on pattern match.

See Also