Hello. Help me please. I add nation war channels. All work. But me need autostart in 00:00, 04:00, 08:00, etc. How I can make it?
Hello. Help me please. I add nation war channels. All work. But me need autostart in 00:00, 04:00, 08:00, etc. How I can make it?
Just try to use crond.
Just some easy line to input. I don't remember exactly where the script is located but i think it's in /etc/.
There you can find a script called crond.sh (if i remember correctly).
Input the following line:
0 0,4,8,12,16,20 * * * root /etc/*...*
change the *...* part into the directory where you create your script to start nationwar. just create a file, chmod it and fill in the "service WorldSvr_0x_0x start" commands for your nationwar channels.
Then restart crond or reboot the system. Finish.
Greetings
MOT7
You CAN restart centOS, no need to restart cabal.
To restart crond, use:
"service crond restart" in Terminal.
Should work then.
Greetings
MOT7
To make you easy setting the NW schedule, just open the pre-released repack of toast2250 and find the chk_cabal file in cron.d and open it. there you can see the schedule and change it want time you want.
If you are not using toast's prer-released files, change the war_start.sh in chk_cabal to your .sh file where the WorldSvr NW list is indicated.
Last edited by jaguar666; 03-05-13 at 11:08 PM.
I would strongly suggest that you have to try to use the repack made by toast and put this line to
chk_cabal:
0 0,4,8,12,16,20 * * * root /home/cabal/start_war.sh
Anyway it is easy to restore your current set-up by just copying all .scp files and some .ini files and overwrite it. You can also use your old GlobalMgrSvr.
Another way to do is copy all .sh files from home/cabal of toast repack and chmod it all by giving a permission to those .sh files
The credit goes to chumpy (basic knowledge about linux like windows schedule)
A visual crontab editor - create your custom crontab syntax to use with the cron scheduling application on your Linux server (very helpful, I'm very drunk,.. saw some one fap yesterday on tinychat during forum maintenance,..)
I add in chk_cabal
StartWM.shCode:0 0,4,8,12,16,20 * * * root /etc/cabal/StartWN.sh
No have startCode:logfile=/var/log/cabal/nation_war.log echo "`date`: Nation War starting" | tee -a $logfile service WorldSvr_01_04 start sleep 1 service WorldSvr_01_05 start sleep 1 ervice WorldSvr_01_06 start sleep 1 service WorldSvr_01_07 start sleep 1 service WorldSvr_01_08 start
In 3PM all war channel start, but when I select war channel I have message: Mission War channel unavailable. Please try again on the next War.
try this
share file
TG_system - Download - 4shared
unpack rar and put to home folder in centos
run command in terminal:
chmod -R 0777 /home/cabal/*.*
next command
ln -sf /home/cabal/cabal_TG.sh /usr/bin/cabal_TG
open etc/cron.d/chk_cabal and delete the last line if it is
server_list_mwCode:*/1 * * * * root /home/cabal/check_daemon.sh */1 * * * * root /home/cabal/netrestart.sh * */4 * * * root ntpdate time-a.nist.gov * */4 * * * root /home/cabal/check_daemon_mw.sh
put terminal : cabal_TG to show info how to use commandCode:WorldSvr_01_03 WorldSvr_01_04 WorldSvr_01_05 WorldSvr_01_06 WorldSvr_01_07 WorldSvr_01_08
example: cabal_TG status
[root@localhost ~]# cabal_TG status
TG scheduled start time 04:20
TG scheduled start time 10:20
TG scheduled start time 16:20
TG scheduled start time 22:20
Have a nice day![]()
Last edited by hefajstos; 04-05-13 at 02:23 PM.
When starting a Nation War, I do not get the alerts. How I can fix it?
Not one cant help me?
WorldSvr_01_01.ini
# Load of war
UseLordBroadCastCoolTimeSec=1
LimitedBroadCastByLord=1
After restart CentOS Nation War auto start is broke =\ Why did this happen?
Enable and start crond, make sure that all of the possible files are in Unix encoding format.
Yes, Windows uses CRLF (\r\n, 0D 0A) line endings while Unix just uses LF (\n, 0A).
That is why some reported a empty line in the Item or NPC Selling problem.
What are the differences between Linux and Windows .txt files (Unicode encoding) - Super User
I have to test, but I have noticed that If my crond file/s is in windows encoding then I have to re-edit/save it. It then works, as a result it gets converted to unix.
Its not that big of a deal, nice to know tho,..
(All files must be edited and saved in unix format)