Add configurable restart delay

This commit is contained in:
2021-01-01 18:25:04 -06:00
parent fa9a2397a7
commit e94937cd44
3 changed files with 3 additions and 1 deletions

View File

@@ -30,7 +30,7 @@ ExecReload=/usr/bin/screen -p 0 -S %i -X eval 'stuff "reload"\\015'
ExecStop=/usr/bin/screen -p 0 -S %i -X eval 'stuff "say Server is going down: Service was stopped"\\015'
ExecStop=/usr/bin/screen -p 0 -S %i -X eval 'stuff "save-all"\\015'
ExecStop=/usr/bin/screen -p 0 -S %i -X eval 'stuff "stop"\\015'
ExecStop=/bin/sleep 5
ExecStop=/bin/sleep ${MC_RESTART_DELAY}
Restart=always
# Restart after 24hrs