From de46ac558d3672d8799a3aaaa5a2f74af73a5bc7 Mon Sep 17 00:00:00 2001 From: Paul Caskey Date: Thu, 2 Feb 2017 12:19:21 -0600 Subject: [PATCH] add needed cron files --- files/bin/sendtierbeacon.sh | 4 ++++ files/bin/startcron.sh | 3 +++ files/tier-crontab | 2 ++ 3 files changed, 9 insertions(+) create mode 100644 files/bin/sendtierbeacon.sh create mode 100644 files/bin/startcron.sh create mode 100644 files/tier-crontab diff --git a/files/bin/sendtierbeacon.sh b/files/bin/sendtierbeacon.sh new file mode 100644 index 0000000..dc13f84 --- /dev/null +++ b/files/bin/sendtierbeacon.sh @@ -0,0 +1,4 @@ +#!/bin/sh +if [ -z "$TIER_BEACON_OPT_OUT" ]; then +# logger -p $IMAGENAME &MAINTAINER &VERSION +fi \ No newline at end of file diff --git a/files/bin/startcron.sh b/files/bin/startcron.sh new file mode 100644 index 0000000..571fe0e --- /dev/null +++ b/files/bin/startcron.sh @@ -0,0 +1,3 @@ +#!/bin/sh +cron +touch /var/log/cron.log diff --git a/files/tier-crontab b/files/tier-crontab new file mode 100644 index 0000000..590dd74 --- /dev/null +++ b/files/tier-crontab @@ -0,0 +1,2 @@ +#send daily ping to TIER Central +0 0 * * * /usr/bin/sendtierbeacon.sh >> /var/log/cron.log 2>&1