Guest User

Untitled

a guest
Dec 19th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. more /lib/systemd/system/systemd-tmpfiles-clean.timer
  2. # This file is part of systemd.
  3. #
  4. # systemd is free software; you can redistribute it and/or modify it
  5. # under the terms of the GNU Lesser General Public License as published by
  6. # the Free Software Foundation; either version 2.1 of the License, or
  7. # (at your option) any later version.
  8.  
  9. [Unit]
  10. Description=Daily Cleanup of Temporary Directories
  11. Documentation=man:tmpfiles.d(5) man:systemd-tmpfiles(8)
  12.  
  13. [Timer]
  14. OnBootSec=15min
  15. OnUnitActiveSec=1d
  16.  
  17. more /usr/lib/tmpfiles.d/tmp.conf
  18. # This file is part of systemd.
  19. #
  20. # systemd is free software; you can redistribute it and/or modify it
  21. # under the terms of the GNU Lesser General Public License as published by
  22. # the Free Software Foundation; either version 2.1 of the License, or
  23. # (at your option) any later version.
  24.  
  25. # See tmpfiles.d(5) for details
  26.  
  27. # Clear tmp directories separately, to make them easier to override
  28. v /tmp 1777 root root 10d
  29. v /var/tmp 1777 root root 30d
  30.  
  31. # Exclude namespace mountpoints created with PrivateTmp=yes
  32. x /tmp/systemd-private-%b-*
  33. X /tmp/systemd-private-%b-*/tmp
  34. x /var/tmp/systemd-private-%b-*
  35. X /var/tmp/systemd-private-%b-*/tmp
  36.  
  37. OnUnitActiveSec=1h ( /lib/systemd/system/systemd-tmpfiles-clean.timer )
  38.  
  39. v /tmp 1777 root root 1d
Add Comment
Please, Sign In to add comment