rut-test-ops/global/overlay/usr/local/libexec/cosmos-cron-wrapper
Johan Wassberg 49ba964897
Wrap cosmos in scriptherder if available
nunoc-ops and others has been doing this for ages by just modifing the cron
file.
2023-02-02 11:45:54 +01:00

11 lines
249 B
Bash

#!/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}