From da8598dd622df36f853b32782e8c9756d2a4e787 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Wed, 14 Mar 2018 15:19:07 +0100 Subject: Fixed update.cf problem no copying all template files --- templates/cfengine/cfengine_watchdog | 6 ------ templates/cfengine/cfengine_watchdog.cftpl | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) delete mode 100644 templates/cfengine/cfengine_watchdog create mode 100644 templates/cfengine/cfengine_watchdog.cftpl (limited to 'templates/cfengine') diff --git a/templates/cfengine/cfengine_watchdog b/templates/cfengine/cfengine_watchdog deleted file mode 100644 index a998511..0000000 --- a/templates/cfengine/cfengine_watchdog +++ /dev/null @@ -1,6 +0,0 @@ -############################################################################### -# \_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}} diff --git a/templates/cfengine/cfengine_watchdog.cftpl b/templates/cfengine/cfengine_watchdog.cftpl new file mode 100644 index 0000000..a998511 --- /dev/null +++ b/templates/cfengine/cfengine_watchdog.cftpl @@ -0,0 +1,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}} -- cgit v1.2.3