Reduce frequence of stop-minecraft job
Hopefully fix endless stop/start loop, needs testing more
This commit is contained in:
parent
6fa95c45f7
commit
0642685bb3
|
@ -6,9 +6,9 @@
|
|||
modulesPath,
|
||||
...
|
||||
}: let
|
||||
# check every 20 seconds if the server
|
||||
# check every 15 minutes if the server
|
||||
# need to be stopped
|
||||
frequency-check-players = "*-*-* *:*:0/20";
|
||||
frequency-check-players = "*-*-* *:0/15";
|
||||
|
||||
# time in second before we could stop the server
|
||||
# this should let it time to spawn
|
||||
|
@ -166,9 +166,7 @@ in {
|
|||
if ${no-player-connected}/bin/no-player-connected
|
||||
then
|
||||
echo "stopping server"
|
||||
systemctl stop minecraft-server.service
|
||||
systemctl stop hook-minecraft.service
|
||||
systemctl stop stop-minecraft.timer
|
||||
systemctl stop minecraft-server.service hook-minecraft.service stop-minecraft.timer
|
||||
fi
|
||||
'';
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue