updated readme of autismbot and added systemctl service for hlstats
This commit is contained in:
parent
68f21da53b
commit
0ad9d62ef9
@ -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
|
||||
|
17
HLstats/systemctl/hlstats.service
Normal file
17
HLstats/systemctl/hlstats.service
Normal 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
|
3
HLstats/systemctl/hlstats.sh
Normal file
3
HLstats/systemctl/hlstats.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/usr/bin/sh
|
||||
/home/nonroot/hlstats/run_hlstats stop
|
||||
/home/nonroot/hlstats/run_hlstats start
|
9
HLstats/systemctl/hlstats.timer
Normal file
9
HLstats/systemctl/hlstats.timer
Normal file
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Restarts hlstats every 25 mins
|
||||
Requires=hlstats.service
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* *:25,55
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user