|
Lines 477-488
Link Here
|
| 477 |
|
477 |
|
| 478 |
[XmlRpcMethod ("zmd.system.service_remove", Description="Remove the service"), |
478 |
[XmlRpcMethod ("zmd.system.service_remove", Description="Remove the service"), |
| 479 |
Privilege ("superuser")] |
479 |
Privilege ("superuser")] |
| 480 |
public void RemoveService (string id) { |
480 |
public bool RemoveService (string id) { |
| 481 |
Service s = ServiceManager.LookupServiceById (id); |
481 |
Service s = ServiceManager.LookupServiceById (id); |
| 482 |
if (s == null) |
482 |
if (s == null) |
| 483 |
throw new XmlRpcFaultException (FaultInvalidService, "Service not found"); |
483 |
throw new XmlRpcFaultException (FaultInvalidService, "Service not found"); |
| 484 |
|
484 |
|
| 485 |
ServiceManager.Unmount (s); |
485 |
ServiceManager.Unmount (s); |
|
|
486 |
return true; |
| 486 |
} |
487 |
} |
| 487 |
|
488 |
|
| 488 |
[XmlRpcMethod ("zmd.system.service_refresh", Description="Refresh all services"), |
489 |
[XmlRpcMethod ("zmd.system.service_refresh", Description="Refresh all services"), |