• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

CentOS7X, please help me with the cron command

Newbie Spellweaver
Joined
Aug 29, 2011
Messages
52
Reaction score
3
CentOS7X, please help me with the cron command

The cron logs are running normally, but the script commands are not effective? Can you help me take a look at the code?

#!/bin/sh

logfile=/home/cabal/logs/nation_war.log

echo "`date`: Nation War starting" | tee -a $logfile
echo -e "\n\033[0;32m..-----Starting up CABAL NationWar-----..\033[0m"
systemctl restart WorldSvr_01_16 service




The individual test command is effective:

systemctl restart WorldSvr_01_16 service
 
Newbie Spellweaver
Joined
Aug 30, 2023
Messages
21
Reaction score
1
Your nation war is not starting? or it's not starting by itself? without manual commands, like crontab scheduler?
 
Upvote 0
Back
Top