From 7e3431a4c0a8adc26001294c6ae23ec046a22821 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Mon, 7 Oct 2019 09:48:37 +0200 Subject: [PATCH] Add cron jobs for KanBoard, SeedDMS, Ushahidi --- lxc-apps/kanboard/install.sh | 2 -- lxc-apps/kanboard/lxc/etc/crontab/kanboard | 1 + lxc-apps/kanboard/lxc/etc/services.d/cron/run | 4 ++++ lxc-apps/seeddms/install.sh | 2 -- lxc-apps/seeddms/lxc/etc/crontab/seeddms | 1 + lxc-apps/seeddms/lxc/etc/services.d/cron/run | 4 ++++ lxc-apps/ushahidi/install.sh | 2 -- lxc-apps/ushahidi/lxc/etc/crontab/ushahidi | 5 +++++ lxc-apps/ushahidi/lxc/etc/services.d/cron/run | 4 ++++ 9 files changed, 19 insertions(+), 6 deletions(-) create mode 100644 lxc-apps/kanboard/lxc/etc/crontab/kanboard create mode 100644 lxc-apps/kanboard/lxc/etc/services.d/cron/run create mode 100644 lxc-apps/seeddms/lxc/etc/crontab/seeddms create mode 100644 lxc-apps/seeddms/lxc/etc/services.d/cron/run create mode 100644 lxc-apps/ushahidi/lxc/etc/crontab/ushahidi create mode 100644 lxc-apps/ushahidi/lxc/etc/services.d/cron/run diff --git a/lxc-apps/kanboard/install.sh b/lxc-apps/kanboard/install.sh index d82f11d..ad5fb85 100755 --- a/lxc-apps/kanboard/install.sh +++ b/lxc-apps/kanboard/install.sh @@ -36,5 +36,3 @@ service kanboard-postgres stop # Register application vmmgr register-app kanboard kb "${KANBOARD_ADMIN_USER}" "${KANBOARD_ADMIN_PWD}" - -# TODO: cron diff --git a/lxc-apps/kanboard/lxc/etc/crontab/kanboard b/lxc-apps/kanboard/lxc/etc/crontab/kanboard new file mode 100644 index 0000000..74721dc --- /dev/null +++ b/lxc-apps/kanboard/lxc/etc/crontab/kanboard @@ -0,0 +1 @@ +0 * * * * /srv/kanboard/cli cronjob >/dev/null diff --git a/lxc-apps/kanboard/lxc/etc/services.d/cron/run b/lxc-apps/kanboard/lxc/etc/services.d/cron/run new file mode 100644 index 0000000..d75300e --- /dev/null +++ b/lxc-apps/kanboard/lxc/etc/services.d/cron/run @@ -0,0 +1,4 @@ +#!/bin/execlineb -P + +fdmove -c 2 1 +crond -f -d 8 diff --git a/lxc-apps/seeddms/install.sh b/lxc-apps/seeddms/install.sh index b1423ed..d0087d2 100755 --- a/lxc-apps/seeddms/install.sh +++ b/lxc-apps/seeddms/install.sh @@ -43,5 +43,3 @@ service seeddms-postgres stop # Register application vmmgr register-app seeddms dms "${SEEDDMS_ADMIN_USER}" "${SEEDDMS_ADMIN_PWD}" - -# TODO: cron diff --git a/lxc-apps/seeddms/lxc/etc/crontab/seeddms b/lxc-apps/seeddms/lxc/etc/crontab/seeddms new file mode 100644 index 0000000..c2331f6 --- /dev/null +++ b/lxc-apps/seeddms/lxc/etc/crontab/seeddms @@ -0,0 +1 @@ +*/10 * * * * /srv/seeddms/seeddms/utils/seeddms-indexer >/dev/null diff --git a/lxc-apps/seeddms/lxc/etc/services.d/cron/run b/lxc-apps/seeddms/lxc/etc/services.d/cron/run new file mode 100644 index 0000000..d75300e --- /dev/null +++ b/lxc-apps/seeddms/lxc/etc/services.d/cron/run @@ -0,0 +1,4 @@ +#!/bin/execlineb -P + +fdmove -c 2 1 +crond -f -d 8 diff --git a/lxc-apps/ushahidi/install.sh b/lxc-apps/ushahidi/install.sh index 627d8f2..bce9df2 100755 --- a/lxc-apps/ushahidi/install.sh +++ b/lxc-apps/ushahidi/install.sh @@ -39,5 +39,3 @@ service ushahidi-mariadb stop # Register application vmmgr register-app ushahidi ush "${USHAHIDI_ADMIN_USER}" "${USHAHIDI_ADMIN_PWD}" - -# TODO: cron diff --git a/lxc-apps/ushahidi/lxc/etc/crontab/ushahidi b/lxc-apps/ushahidi/lxc/etc/crontab/ushahidi new file mode 100644 index 0000000..7ef59c4 --- /dev/null +++ b/lxc-apps/ushahidi/lxc/etc/crontab/ushahidi @@ -0,0 +1,5 @@ +*/10 * * * * cd /srv/ushahidi/platform; bin/ushahidi dataprovider outgoing >/dev/null +*/10 * * * * cd /srv/ushahidi/platform; bin/ushahidi dataprovider incoming >/dev/null +*/10 * * * * cd /srv/ushahidi/platform; bin/ushahidi savedsearch >/dev/null +*/10 * * * * cd /srv/ushahidi/platform; bin/ushahidi notification queue >/dev/null +*/10 * * * * cd /srv/ushahidi/platform; bin/ushahidi webhook send >/dev/null diff --git a/lxc-apps/ushahidi/lxc/etc/services.d/cron/run b/lxc-apps/ushahidi/lxc/etc/services.d/cron/run new file mode 100644 index 0000000..d75300e --- /dev/null +++ b/lxc-apps/ushahidi/lxc/etc/services.d/cron/run @@ -0,0 +1,4 @@ +#!/bin/execlineb -P + +fdmove -c 2 1 +crond -f -d 8