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