updated readme of autismbot and added systemctl service for hlstats

This commit is contained in:
christian 2021-10-12 22:30:16 +02:00
parent 68f21da53b
commit 0ad9d62ef9
4 changed files with 30 additions and 0 deletions

View File

@ -14,6 +14,7 @@ apt install mesa-vulkan-drivers libglx-mesa0:i386 mesa-vulkan-drivers:i386 libgl
apt-get remove xserver-xorg-video-intel apt-get remove xserver-xorg-video-intel
#fonts #fonts
dpkg-reconfigure locales dpkg-reconfigure locales
en_US.UTF 8 en_US.UTF 8

View File

@ -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

View File

@ -0,0 +1,3 @@
#!/usr/bin/sh
/home/nonroot/hlstats/run_hlstats stop
/home/nonroot/hlstats/run_hlstats start

View File

@ -0,0 +1,9 @@
[Unit]
Description=Restarts hlstats every 25 mins
Requires=hlstats.service
[Timer]
OnCalendar=*-*-* *:25,55
[Install]
WantedBy=multi-user.target