Bug 91

Summary: Starting a started service should be success.
Product: TORQUE Reporter: Steve Traylen <steve.traylen>
Component: pbs_serverAssignee: Al Taufer <ataufer>
Status: RESOLVED FIXED    
Severity: enhancement CC: ataufer, torquedev
Priority: P5    
Version: 2.5.x   
Hardware: PC   
OS: Linux   
Attachments: Check's the status before the service is actually started

Description Steve Traylen 2010-10-14 15:53:03 MDT
Created an attachment (id=58) [details]
Check's the status before the service is actually started

Currently if you run 

service pbs_server start
service pbs_server start

then the second one fails even though the service is already started.

Same is true for 

service pbs_server stop
service pbs_server stop

where the second one fails even though the service is already stopped.

The attached patch corrects this behaviour.

Reported here also: 
https://bugzilla.redhat.com/show_bug.cgi?id=643194

same also true for pbs_sched and pbs_mom, this patch addresses all.
Comment 1 Al Taufer 2010-11-15 13:48:38 MST
This has been checked into the 2.5 and trunk branches.