Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cronBasher initial commit #1

Merged
merged 3 commits into from
Oct 4, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Change path to script
  • Loading branch information
coExp committed Oct 3, 2019
commit abacfd21c66a7b85da7a3ed6804e94a6656f1061
12 changes: 6 additions & 6 deletions bash/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ START_DATE=$(date --iso-8601=ns)
# To easy launch command in cron, and log there results, follow these steps:
#
# - Configure these variables into your script:
# PID_FILE="./jobs/pids/<command_name>.pid"
# LOG_FILE="./var/logs/cron_<command_name>>.log"
# PID_FILE="./pids/<command_name>.pid"
# LOG_FILE="./logs/cron_<command_name>>.log"
# DATADOG_TAGS="tags,to,send,to,datadog"
#
# - Import into your script this file with:
# if [ -f ./jobs/bash/functions.sh ]; then
# . ./jobs/bash/functions.sh
# if [ -f ./bash/functions.sh ]; then
# . ./bash/functions.sh
# else
# echo "Cannot find file \`function.sh\`. Please run into the symfony project."
# exit 1
Expand All @@ -33,10 +33,10 @@ START_DATE=$(date --iso-8601=ns)
#
# EXAMPLES
# Launch simple command
# @see ./jobs/generate_synctag.sh
# @see ./simple_command.sh
#
# Launch command while work to do
# @see ./jobs/register_event.sh
# @see ./recursive_command.sh
# ----------------------------------------------------------------------------------

# Launch the command and handle returns
Expand Down