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,
|
modulesPath,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
# check every 20 seconds if the server
|
# check every 15 minutes if the server
|
||||||
# need to be stopped
|
# need to be stopped
|
||||||
frequency-check-players = "*-*-* *:*:0/20";
|
frequency-check-players = "*-*-* *:0/15";
|
||||||
|
|
||||||
# time in second before we could stop the server
|
# time in second before we could stop the server
|
||||||
# this should let it time to spawn
|
# this should let it time to spawn
|
||||||
|
@ -166,9 +166,7 @@ in {
|
||||||
if ${no-player-connected}/bin/no-player-connected
|
if ${no-player-connected}/bin/no-player-connected
|
||||||
then
|
then
|
||||||
echo "stopping server"
|
echo "stopping server"
|
||||||
systemctl stop minecraft-server.service
|
systemctl stop minecraft-server.service hook-minecraft.service stop-minecraft.timer
|
||||||
systemctl stop hook-minecraft.service
|
|
||||||
systemctl stop stop-minecraft.timer
|
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue