As the first alternative, a DSOM kernel extension can be set up, which automatically frees the system resources used by DSOM when a process exits. The somdclean command is issued to load, unload or query a DSOM kernel extension, as follows:
somdclean -l
The somdclean command can only be executed by a privileged user. Hence, you must execute this command as "root".
The kernel extension is only aware of DSOM processes started after it has been loaded. That is, if a DSOM process is started before the kernel extension is loaded, the resources associated with the existing process will not be freed.
Before you unload the kernel extension, verify that there are no active DSOM processes. If the kernel extension is unloaded while DSOM is using it, the system will crash.