diff --git a/AutismBotIngame/README.md b/AutismBotIngame/README.md index cc0de0d9..c71d9a75 100644 --- a/AutismBotIngame/README.md +++ b/AutismBotIngame/README.md @@ -14,6 +14,7 @@ apt install mesa-vulkan-drivers libglx-mesa0:i386 mesa-vulkan-drivers:i386 libgl apt-get remove xserver-xorg-video-intel #fonts + dpkg-reconfigure locales en_US.UTF 8 diff --git a/HLstats/systemctl/hlstats.service b/HLstats/systemctl/hlstats.service new file mode 100644 index 00000000..aae283b0 --- /dev/null +++ b/HLstats/systemctl/hlstats.service @@ -0,0 +1,17 @@ +[Unit] +Description=hlstatsX:CE +After=network.target + +[Service] +Type=forking +User=nonroot +Group=nonroot +ExecStart=/home/nonroot/hlstats/hlstats.sh +SuccessExitStatus=1 + +# Security +MemoryLimit=500M +CPUQuota=80% + +[Install] +WantedBy=default.target diff --git a/HLstats/systemctl/hlstats.sh b/HLstats/systemctl/hlstats.sh new file mode 100644 index 00000000..04c03e32 --- /dev/null +++ b/HLstats/systemctl/hlstats.sh @@ -0,0 +1,3 @@ +#!/usr/bin/sh +/home/nonroot/hlstats/run_hlstats stop +/home/nonroot/hlstats/run_hlstats start diff --git a/HLstats/systemctl/hlstats.timer b/HLstats/systemctl/hlstats.timer new file mode 100644 index 00000000..cf1f3c14 --- /dev/null +++ b/HLstats/systemctl/hlstats.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Restarts hlstats every 25 mins +Requires=hlstats.service + +[Timer] +OnCalendar=*-*-* *:25,55 + +[Install] +WantedBy=multi-user.target