• 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.

Service Cabal new commands

Newbie Spellweaver
Joined
Aug 5, 2009
Messages
93
Reaction score
94
HI
New commands all in one file.
modified an etc / init.d / cabal and I added new commands to start and stop Server. New commands allow you to quickly see whether the server we took off, delete logs, manage TG, list all the errors in the logs.
Server start function with a delay of 5 sec ChatNode the rest 1sec
depending on your machine you can change these values.
1 - delay ChatNode
2 - delay the other Services
Code:
  start)
	DAEMON_COREFILE_LIMIT=unlimited
	for daemon in $daemons
	do
		echo -ne "\e[36mStarting\e[0m $daemon: "
    name="${daemon%%_*}"
if [ $name == "[COLOR="#008000"]ChatNode[/COLOR]" ]; then
		echo -n
		[COLOR="#FF0000"]sleep 8[/COLOR]
fi
		daemon -1 --user root $daemon
		echo
		[COLOR="#0000FF"]sleep 1[/COLOR]
	done
	echo -e "\e[32mServer Start\e[0m"
        ;;
The server starts perfectly every time
List of available commands by typing : --> service cabal help <--
help.PNG - Service Cabal new commands - RaGEZONE Forums
you want to test here is the
you have any suggestions to add new commands I will be grateful
 

Attachments

You must be registered for see attachments list
Last edited:
Custom Title Activated
Loyal Member
Joined
Mar 24, 2011
Messages
1,632
Reaction score
145
this suport the latest vertion? or the old vertion
 
Skilled Illusionist
Joined
Jan 5, 2009
Messages
343
Reaction score
391
i've tested it and am using it since you posted it :) rly good job, not actually that useful tho, but i love the "stopd" feature :D logs are rly annoying :) and about other features ... well i don't rly think you can add anything more ... maybe a cron job editor for nation war, like "TGadd 12 30" or something ...

btw: some1 should include it in a repack :p
 
Custom Title Activated
Loyal Member
Joined
Mar 24, 2011
Messages
1,632
Reaction score
145
so its suport almost all vertion
 
Skilled Illusionist
Joined
Jan 5, 2009
Messages
343
Reaction score
391
btw, forgot to post this :D improvement: make it delete .log* since if logs get too big they get separated into blabla.log.01, blabla.log.02, etc :D
 
Newbie Spellweaver
Joined
Nov 6, 2011
Messages
32
Reaction score
6
Works like a charm. Thank you for sharing.
 
Experienced Elementalist
Joined
Sep 26, 2008
Messages
211
Reaction score
2
Very good stuff all time i start and restart server work 100%

i search a simple web to register and top 100 for ep 8 can you help me?
 
Back
Top