mirror of
https://github.com/ilyakooo0/xmrig-bash-scripts.git
synced 2024-11-22 04:04:22 +03:00
changes to crontab
This commit is contained in:
parent
3d6ecce4b5
commit
9b02099d8c
@ -14,12 +14,16 @@ crontab -l > crontab
|
||||
echo "Removing exiting crontab"
|
||||
crontab -r
|
||||
|
||||
# Define env path
|
||||
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/local/games:/snap/bin:/bin/:$_WORK_DIR
|
||||
|
||||
# Setup users contab
|
||||
crontab -l | { cat; echo "#Start at $_USER_TIMESTART on days $_USER_CRONDAYS
|
||||
0 $_USER_CRONSTART * * $_USER_CRONDAYS $_WORK_DIR/start.sh"; } | crontab -
|
||||
0 $_USER_CRONSTART * * $_USER_CRONDAYS bash start.sh"; } | crontab -
|
||||
|
||||
crontab -l | { cat; echo "#Stop at $_USER_TIMESTOP on days $_USER_CRONDAYS
|
||||
0 $_USER_CRONSTOP * * $_USER_CRONDAYS $_WORK_DIR/stop.sh"; } | crontab -
|
||||
0 $_USER_CRONSTOP * * $_USER_CRONDAYS bash stop.sh"; } | crontab -
|
||||
|
||||
|
||||
crontab -l
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user