diff --git a/AutismBotIngame/service_files/clean_maps1.service b/AutismBotIngame/service_files/clean_maps1.service new file mode 100644 index 00000000..4f886c56 --- /dev/null +++ b/AutismBotIngame/service_files/clean_maps1.service @@ -0,0 +1,7 @@ +[Unit] +Description=Deleting files from places after a certain amount of days + +[Service] +Type=simple +User=autismbot1 +ExecStart=find "/home/autismbot1/.steam/debian-installation/steamapps/common/Counter-Strike Source/cstrike/download/maps" -maxdepth 1 -mmin +179 -type f -delete diff --git a/AutismBotIngame/service_files/clean_maps1.timer b/AutismBotIngame/service_files/clean_maps1.timer new file mode 100644 index 00000000..ad00ba55 --- /dev/null +++ b/AutismBotIngame/service_files/clean_maps1.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Runs the maps Cleaner once each 10 hours +Requires=clean_maps1.service + +[Timer] +OnCalendar=00/1:00 + +[Install] +WantedBy=multi-user.target