Skip to content
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

shellrecorder: properly clean up #1132

Closed
1 of 2 tasks
markus2330 opened this issue Nov 23, 2016 · 4 comments
Closed
1 of 2 tasks

shellrecorder: properly clean up #1132

markus2330 opened this issue Nov 23, 2016 · 4 comments
Assignees
Milestone

Comments

@markus2330
Copy link
Contributor

markus2330 commented Nov 23, 2016

All changes to KDB should be cleaned up afterwards.

Including, but not limited to:

  • mountpoints
  • globalplugins

But it should also yield an error in the case that something is not cleaned up in the tutorial, see #1189

The shell recorder is getting really great! We will advertise it with the next release!

@tom-wa
Copy link
Contributor

tom-wa commented Jan 30, 2017

afaik there is currently no way to umount a global plugin ? i can do the cleanup in the MSR without it, but should exist anyway.

@tom-wa
Copy link
Contributor

tom-wa commented Jan 30, 2017

would it be enough to umount everything that wasn't mounted before running the MSR and mount everything that isn't present afterwards ?

@markus2330
Copy link
Contributor Author

afaik there is currently no way to umount a global plugin ?

Yes, there is some other essential functionality missing too, see #1290. I assigned it to @e1528532, should be an easy job.

would it be enough to umount everything that wasn't mounted before running the MSR and mount everything that isn't present afterwards ?

Yes, it would be nice if everything wrong is reverted but the unit test should nevertheless fail thus the unit test clearly does wrong things and needs to be fixed. Please do not make cleanup logic too complicated, otherwise it might do more harm than good.

@markus2330
Copy link
Contributor Author

To allow further temporary files (cleaned up by shell recorder, see #1613 for a use case), the shell recorder should set some TMPDIR variable which can be used within the scripts.

@sanssecours sanssecours self-assigned this Oct 26, 2017
@sanssecours sanssecours modified the milestones: 0.8.20, 0.8.21 Oct 30, 2017
sanssecours added a commit to sanssecours/elektra that referenced this issue Nov 12, 2017
sanssecours added a commit to sanssecours/elektra that referenced this issue Nov 12, 2017
sanssecours added a commit to sanssecours/elektra that referenced this issue Nov 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants