3 ## this is the nightly restart script.
4 ## it should be used by cron, just makes sure we're in the correct path
5 ## and env vars are set before restarting
6 ## cron example (pick different times for each server)
7 ## ## this does a staggerd restart of the server each night
8 ## 15 1 * * * /home/ec2-user/fc/util/nightly-restart.sh > /tmp/cron.nightly-restart.log
11 ## save of the current path
16 ## make sure to load the env vars
19 ## restart the server using the normal restart script
22 ## restore the previous path