Is there any way to automatically assign pre- and post-launch actions to applications in Linux?
Exaple scanario: When I launch Virtualbox,
vboxdrv is loaded transparently; when I close Virtualbox, the module gets unloaded automatically.
The usual way is to wrap the application in a script
Then invoke that script instead of invoking the application directly