Operating System - HP-UX
1829118 Members
2040 Online
109986 Solutions
New Discussion

Error: Two services with same name

 
SOLVED
Go to solution
Elif Gius
Valued Contributor

Error: Two services with same name

Hi all,

I would like to configure a SERVICE within my package. So I added following entries into my package control file:

SERVICE_NAME[0]="Service"
SERVICE_CMD[0]="/etc/cmcluster/package/Service/Service.sh start"
SERVICE_RESTART[0]="-R"

My config file looks like following:

SERVICE_NAME Service
SERVICE_FAIL_FAST_ENABLED NO
SERVICE_HALT_TIMEOUT 60

Everythings looks fine. I made the same entries in another service guard packge. There it works. But here I got following error when trying a cmcheckconf -v -P PACKAGE.conf

Checking existing configuration ... Done
Gathering configuration information ... Done
Parsing package file: PACKAGE.conf.
Package PACKAGE already exists. It will be modified.
Error: Two services with same name: Service
Error: Two services with same name: Service
Maximum configured packages parameter is 60.
Configuring 54 package(s).
6 package(s) can be added to this cluster.
cmcheckconf : Unable to verify package.

But I don't see that the service is twice configured. Has anyone an idea???
3 REPLIES 3
melvyn burnard
Honored Contributor
Solution

Re: Error: Two services with same name

are you saying you already have a service called Service configured in the cluster?
If so, that is the problem. Service names need to be unique within the cluster.
I also recommend you call your service something more meaningful, so as to ease management and troubleshooting.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Elif Gius
Valued Contributor

Re: Error: Two services with same name

My Service Name is not "Service". I have a Name for this Service.
But this Service will be in all packages.
It is a standard service in our packages. So I wanted to name them all the same.

But thanks for the hint. Thats the information I needed. I couldn't explain myself the error message I received from cmcheckconf .

vasundhara
Frequent Advisor

Re: Error: Two services with same name

If you need to have the same service in all the packages, the tip is to give the SERVICE_NAME as _ This will not give any error.

For example, the service name ABC is needed in packages P1, P2, then you can give the service name as ABC_P1, ABC_P2... Rest all can be same... Service guard will not allow only duplicate entries for Service name...

Regards,
VJ