summaryrefslogtreecommitdiff
path: root/templates/cfengine/cfengine_watchdog
blob: a998511a961838b8f53e113ac13989e21c776241 (plain)
1
2
3
4
5
6
###############################################################################
#     \_o<     WARNING : This file is being managed by cfengine!     >o_/     #
#     ~~~~                                                           ~~~~     #
###############################################################################
{{#systemd}}* * * * * root [ -x "/var/cfengine/bin/cf-execd" ] && if ! /bin/systemctl status cfengine3 > /dev/null; then /bin/systemctl start cfengine3; fi{{/systemd}}
{{^systemd}}* * * * * root [ -x "/var/cfengine/bin/cf-execd" ] && if ! /usr/bin/pgrep cf-execd > /dev/null; then "/var/cfengine/bin/cf-execd"; fi{{/systemd}}