Skip to content

Systemd user unit to recursively touch files in HPC clusters's scratch folders.

Notifications You must be signed in to change notification settings

fedepau/touchall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

touchall

This systemd user unit recursively updates file timestamps in a given directory ($SCRATCH) to overcome the automatic deletion policy generally adopted on HPC clusters. When enabled, the unit will submit a heavily parallelized touch command on the whole content of the $SCRATCH directory at each login.

installation

  1. Transfer touchall.service to ~/.config/systemd/user/ on the cluster. A systemd timer (touchall.timer, which runs the namesake service weekly) is also included, but pointless most of the time, because instances of systemd-user seemingly can't survive outside of the login session (at least on the cluster I use).

  2. Edit the envvars in touchall.service (TA_PARTITION, TA_ACCOUNT and TA_SCRATCH) accordingly.

  3. Run systemctl --user enable --now touchall.service to enable and execute the unit immediately.

About

Systemd user unit to recursively touch files in HPC clusters's scratch folders.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published