check for /etc/no-automatic-cosmos in the wrapper, and allow arguments to be passed
This commit is contained in:
parent
3988f5beb0
commit
79606f2a6d
|
@ -1,4 +1,4 @@
|
||||||
SHELL=/bin/sh
|
SHELL=/bin/sh
|
||||||
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
||||||
|
|
||||||
*/15 * * * * root test -f /etc/no-automatic-cosmos || /usr/local/libexec/cosmos-cron-wrapper
|
*/15 * * * * root /usr/local/libexec/cosmos-cron-wrapper
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
RUN_COSMOS=/usr/local/bin/run-cosmos
|
test -f /etc/no-automatic-cosmos && exit 0
|
||||||
|
|
||||||
|
RUN_COSMOS='/usr/local/bin/run-cosmos'
|
||||||
SCRIPTHERDER_CMD=''
|
SCRIPTHERDER_CMD=''
|
||||||
|
|
||||||
if [ -f /usr/local/bin/scriptherder ]; then
|
if [ -x /usr/local/bin/scriptherder ]; then
|
||||||
SCRIPTHERDER_CMD='/usr/local/bin/scriptherder --mode wrap --syslog --name cosmos --'
|
SCRIPTHERDER_CMD='/usr/local/bin/scriptherder --mode wrap --syslog --name cosmos --'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
${SCRIPTHERDER_CMD} ${RUN_COSMOS}
|
exec ${SCRIPTHERDER_CMD} ${RUN_COSMOS} "$@"
|
||||||
|
|
Loading…
Reference in a new issue