Hi ,
My init.pp has two service elements like below:
class httpd
{
service{
"startjavaservice.sh":
ensure => "running",
}
service{
"stopjavaservice.sh":
ensure =>"stopped",
}
}
First one is for starting Java service and the second one is for stopping the same service.
Problem:
When it has only one service then it is working fine but when it has two services it is not working.
(If It has only startjavaservice then java service is getting started successfully and if it has only stopjavaservice java service is getting stopped.
If it has both the services first service should start and then it should be stopped but here only first thing happened. Java service has started but not stopped)
Can any one help me out on this?
Regards,
Sathish.