extern LIBESC_API int esc_disableservice(char *, esc_security_def_t *)
Disable a service with ESC.Stop an existing service. ESC will stop service instances and de-allocate resources. If the service is in INIT state, ESC will change the service state to DEFINED.
If the service is in ALLOCATING, STARTED, ERROR or HANG state, ESC will terminate service instances and free the allocation. The service state will change to DEALLOCATING. After all containers have finished, the service will becomes DEFINED.
Error on return: May be ESCE_AUTH_FAIL,ESCE_SYS, ESCE_NO_VEMKD, ESCE_ESC_DOWN, ESCE_SOCK_SYS, ESCE_TIME_OUT, ESCE_BAD_ARG, ESCE_NO_MEM, ESCE_XDR, ESCE_NOSUCH_SERVICE, ESCE_AUTH_FAIL,ESCE_NO_ADMIN_AUTH, ESCE_NO_AUTH, ESCE_SEC_INIT_FAIL,ESCE_AUTH_FAIL_CRED_EXPIRE, ESCE_PROTOCOL,ESCE_AUTH_ALREADY,ESCE_AUTH_FAIL_CREATE_EXPIRE, ESCE_AUTH_FAIL_UNKNOWN_USER
- Parameters:
The first parameter IN is the name of the service to be disabled. The second parameter IN is the security context.When usename and password are both NULL, credentials will be used to authenticate user.
- Returns:
- 0 if successful. < 0 otherwise.
Date Modified: 26 Nov 2007
Platform Computing: www.platform.com
Platform Support: support@platform.com
Platform Information Development: doc@platform.com
Copyright © 2001-2007 Platform Computing Corporation. All rights reserved.