Run a script when server reboots

For all the help you need with Armagetron!
Post Reply
User avatar
dukevin
Round Winner
Posts: 219
Joined: Mon Aug 30, 2010 8:25 am
Location: Southern California
Contact:

Run a script when server reboots

Post by dukevin »

When the server reboots, "/admin exit" for example, I want it to run another script.
What part of the server-starting script should be modified?

I currently have

Code: Select all

tail -n0 -f -s 0.01 $cmds | (while true; do $tron --userconfigdir $userconfigdir --vardir $var; done) | tee -a $log 
say $new is a different script. Could it look something like:
tail -n0 -f -s 0.01 $cmds | (while true; do $tron --userconfigdir $userconfigdir --vardir $var; $new done) | tee -a $log
Didn't quite work for me but I had other problems
Image
Post Reply