package
0.0.0-20240828143209-19a0c2fed3e7
Repository: https://github.com/min65535/demo.git
Documentation: pkg.go.dev
# README
bigdatacron
使用方法:
在logsvr的/data/my/logs目录
nohup ./bigdatacron -from="/data/my/logs/" -to="/data/bigdata-storage/" -spc="0 15 21 * * ?" >bigdatacron_nohup.out 2>&1 &
start
#!/usr/bin/env bash
set -e
nohup ./bigdatacron -from="/data/my/logs/" -to="/data/bigdata-storage/" -spc="0 15 21 * * ?" >bigdatacron_nohup.out 2>&1 &
exit 0
restart
#!/usr/bin/env bash
set -e
# shellcheck disable=SC2009
outerPid=$(ps -ef | grep 'bigdatacron' | grep -v 'grep' | awk '{print $2}')
if [ -n "${outerPid}""" ]; then kill -9 $outerPid; fi
nohup ./bigdatacron -from="/data/my/logs/" -to="/data/bigdata-storage/" -spc="0 15 21 * * ?" >bigdatacron_nohup.out 2>&1 &
exit 0
stop
#!/usr/bin/env bash
set -e
# shellcheck disable=SC2009
outerPid=$(ps -ef | grep 'bigdatacron' | grep -v 'grep' | awk '{print $2}')
if [ -n "${outerPid}""" ]; then kill -9 $outerPid; fi
exit 0