Hello,
Well i will soon open my server. So i will need a script for linux debian. It should include:
Thanks.
Well i will soon open my server. So i will need a script for linux debian. It should include:
- When your dedicate server start, then it should execute the script "startup"
- Allow core dumps
- Rum server in nohup or screen
- Set timer for next script
- When the server makes a global save to shutdown at 10:00 CEST/CET. execute the script "shutdown"
- Make a backup of database with format date
- Execute apt-get update && apt-get upgrade
- Add startup script as task next time it reboot
- Reboot when it finished all those tasks
Code:
# Allow core dumps
ulimit -c unlimited
# Set working directory
cd home/server/
# Run server
nohup ./tfs
# Schedule next script
# ?? No idea how
Thanks.