Modified common code to detect duplicate ducc daemons (WS, OR, PM, SM, RM, Agent). The new code was added to DuccService (java main) which is shared by all ducc daemons. The check is made right after process starts to fail fast in case a duplicate is detected.
First, on a daemon startup, the ps command is launched and output scrapped to collect currently running processes on a node. Next, the process list is filtered excluding those that are not owned by the daemon process owner uid. Next, each process in the list is checked to see if its a ducc daemon. If so, a final check is made to see if its a duplicate. Duplicate daemon process exits immediately.