Merge pull request #31 from theseal/wrap-cosmos

Wrap cosmos
This commit is contained in:
Micke Nordin 2023-02-02 13:01:02 +01:00 committed by GitHub
commit ba1e40ffd3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View file

@ -1,4 +1,4 @@
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
*/15 * * * * root test -f /etc/no-automatic-cosmos || /usr/local/bin/run-cosmos
*/15 * * * * root test -f /etc/no-automatic-cosmos || /usr/local/libexec/cosmos-cron-wrapper

View file

@ -0,0 +1,10 @@
#!/usr/bin/env bash
RUN_COSMOS=/usr/local/bin/run-cosmos
SCRIPTHERDER_CMD=''
if [ -f /usr/local/bin/scriptherder ]; then
SCRIPTHERDER_CMD='/usr/local/bin/scriptherder --mode wrap --syslog --name cosmos --'
fi
${SCRIPTHERDER_CMD} ${RUN_COSMOS}