libstorage / libstoragemgmt

A library for storage management
https://libstorage.github.io/libstoragemgmt-doc/
GNU Lesser General Public License v2.1
83 stars 32 forks source link

lsmd: Daemon doesn't prevent running multiple copies using same IPC directory #398

Closed tasleson closed 3 years ago

tasleson commented 4 years ago

The daemon will allow you to run more than one instance at the same time against the same plugin directory and the same IPC directory which causes issues. We should raise an error and exit when the daemon is started and it conflicts with an existing daemon with the same IPC directory. We do want to support multiple lsmd processes running concurrently and allowing them to use the same plugins, but we need to ensure that the IPC directory is unique for each.