New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delete aconfmgr directory from /tmp when exiting #3
Comments
Deleting the directory automatically would interfere with the Follow-up runs (with better ignore rules) should shrink the directory size, because the relevant subdirectories will be deleted and recreated. Isn't |
It is. All files are deleted from /tmp on reboot. |
Yes it is. Maybe a config option somewhere to remove it on exit would be good too. |
/tmp may default to being tmpfs in some cases, but there's nothing that says it has to be. I have /tmp mounted as a separate file system, just like /, /var, etc. |
Where its physically located on disk or in LVM does not matter. If you On Sunday, September 18, 2016, mezzoatic notifications@github.com wrote:
|
@ijustlovemath That's not true. I use Arch, reboot periodically, and /tmp is not cleared on reboot. This is off-topic, and my setup may be different others', but I was just trying to point out that the assumption that /tmp has to be mounted as tmpfs is incorrect. |
/tmp should be cleared on a reboot unless you've got something set up so it I guess my reason for this could use a little more clarification. What Not a huge deal either way, just something I felt might be a good addition. On Sun, Sep 18, 2016, 11:06 etcusrvar notifications@github.com wrote:
|
"should be cleared on a reboot unless you've got something set up so it isn't" There's nothing that says /tmp should be cleared on reboot, and yes, it can be set up so it isn't. |
It's the systemd default behavior. Certainly not "should", but "expected". On Sunday, September 18, 2016, etcusrvar notifications@github.com wrote:
|
I could add an exit hook that would allow the configuration to clean up the temporary directory on exit. However, such a solution would not be discoverable, and relies on the user being aware of the problem and the solution only after the problem presents itself. Perhaps it would be better to address the underlying problem directly. To do that, first we should determine what it is.
|
My personal preference would be to simply document what files/directories are created in /tmp. You may add a config option to use a different base directory from /tmp, but I don't think even this is needed. When I've run into this situation before with other tools (several AUR helpers come to mind), the tool would simply crash when /tmp was full, and I would manually clean up /tmp, put a symlink in /tmp for the offending file/dir to a location with more space, then run the tool again. If aconfmgr filled up my /tmp, I would do the same thing. |
I added a mention to the FILES section of the man page in 68ea74e.
The temporary directory location can be set by setting the |
Implemented in c95a65b. If there are no further suggestions, I'll consider this issue resolved. |
So, as it stands, after my
To be sure, is my understanding that the /tmp directory is only required for a shorter runtime of |
Yes, if you opt in to that with the |
Or just by deleting the tmp dir? |
You can delete it if you don't want to use |
BTW, a configuration size in the order of hundreds of MBs sounds atypical. If some of those files shouldn't be in the configuration, you can ignore them (using |
The /tmp/aconfmgt- directory doesn't get deleted when the program exits. Depending on the system, this can take up a fair amount of room (especially on the first run before all the necessary ignores are added).
The text was updated successfully, but these errors were encountered: