added example of service and timer file that each hour checks if a map file is 3 hours old and then deletes it
This commit is contained in:
parent
c5a6e30ca8
commit
80823c2901
7
AutismBotIngame/service_files/clean_maps1.service
Normal file
7
AutismBotIngame/service_files/clean_maps1.service
Normal file
@ -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
|
9
AutismBotIngame/service_files/clean_maps1.timer
Normal file
9
AutismBotIngame/service_files/clean_maps1.timer
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user