Skip to contentSkip to conversation

How to add service to openais? Someone could give some more details?

Cluster-devel 程任全 2 participants 2 messages Aug 13, 2007

lore
Share & tools
lore

程任全

author
#0 lore raw

here http://www.openais.org/doku.php?id=dev:adding_services said:

The default service list is specified in service.c:default_services. If creating an external plugin, there are configuration parameters which may be used to add your plugin into the openais scanning of plugins.

I'm using the cluster project's cman as an openais plugin, but both these two hadn't give details about howto add a plugin, I mean I add cman plugin to openais, but it didn't take effect, so the following
is: how to configure it?

Signature · 5 lines
Denis Cheng
Linux Application Developer

"One of my most productive days was throwing away 1000 lines of code."
 - Ken Thompson.
#1 lore raw
Quoted 11 lines · ???

here http://www.openais.org/doku.php?id=dev:adding_services said:

The default service list is specified in service.c:default_services. If creating an external plugin, there are configuration parameters which may be used to add your plugin into the openais scanning of plugins.

I'm using the cluster project's cman as an openais plugin, but both these two hadn't give details about howto add a plugin, I mean I add cman plugin to openais, but it didn't take effect, so the following
is: how to configure it?

The cman plugin gets activated by openais because it is always started using cman_tool. The magic is simply to set the environment variable

OPENAIS_DEFAULT_CONFIG_IFACE=cmanconfig

before starting openais

That causes the cman configuration service to be loaded instead of the one that reads openais.conf

Patrick