added systemd files for cleaning directories like /maps folder and cleaning old demos too
This commit is contained in:
parent
5f4d803ef2
commit
ef28fb9364
8
systemd_file_cleaner/clean_file.service
Normal file
8
systemd_file_cleaner/clean_file.service
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Deleting files from places after a certain amount of days
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=nonroot
|
||||||
|
WorkingDirectory="/home/nonroot/.steam/debian-installation/steamapps/common/Counter-Strike Source/cstrike/download/maps"
|
||||||
|
ExecStart=find "/home/nonroot/.steam/debian-installation/steamapps/common/Counter-Strike Source/cstrike/download/maps" -maxdepth 1 -mtime +2 -type f -delete
|
10
systemd_file_cleaner/clean_file.timer
Normal file
10
systemd_file_cleaner/clean_file.timer
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Runs the fileCleaner once each hour
|
||||||
|
Requires=clean_file.service
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnCalendar=*-*-* *:0
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Reference in New Issue
Block a user