Puppet : stop a service if a filesystem is not mounted on boot -


What is the best way to write a puppet code - "Stop croning / file system is not mounted" (file system mount is taken into account carefully)

Redhat Cluter) "

exec The easiest way to deal with this is:

  exec {"stop_crond": command = & gt; "service canceled stop", path => "/ sbin: / usr / sbin: / Bin: / usr / bin ", as long as = & gt;" mount | Grep -oq "/ filesystem" ',}    

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -