How to Stop and Disable the PAMSC endpoint from restarting on reboot..
search cancel

How to Stop and Disable the PAMSC endpoint from restarting on reboot..

book

Article ID: 423992

calendar_today

Updated On:

Products

CA Privileged Access Manager - Server Control (PAMSC)

Issue/Introduction

Just stopping the PAMSC endpoint may not be enough. In some cases, you may want to stop and disable the service from restarting on reboot. The procedure will differ depending on OS and how it was configured to auto-start services on boot.

Resolution

 
This is a basic list of some common commands you can use to manage the services on the following OS versions. Please note this is not a complete list and in many cases the method used to auto-start PAMSC Seos services on your system may differ depending on your system administrator's design. Your system administrator should be able to ensure the right commands are used appropriately.
 
Linux Systemd
 
List all services: systemctl status -a
Check status:  systemctl status <service_name>
Stop a service: systemctl stop <service_name>
Enable a service:  systemctl enable <service_name>
Disable a service: systemctl disable <service_name>
Permanent disable: systemctl mask <service_name>
 
Linux RC 
 
The older method of auto restarting the endpoint was to manually add custom runLevel scripts. So, you would need to review the scripts inside the /etc/rc.d scripts (rc0.d/ rc1.d/ rc2.d/ rc3.d/ rc4.d/ rc5.d/ rc6.d/ rc.d/) or update any specific RC scripts that would automate the system startup. 
 
Solaris commands 
 
List all services: svcs -a
Check status: svcs <service_name>
Check if a service is enabled/running: svcs -p <service_name>
Stop a service: svcadm disable -t <service_name>
Enable a service: svcadm enable <service_name>
Disable a service: svcadm disable <service_name>
Permanent disable: svcadm disable -p <service_name>
Note : In Solaris and other SMF-enabled systems, you cannot stop a service using the svcs command itself; svcs is used only to view service status
 
 
AIX commands 

List all services: lssrc -a 
Check status: lssrc -s <subsystem_name>
Stop a service: stopsrc -s <subsystem_name>
Disable a service:  To prevent them from restarting, comment out the corresponding line in /etc/rc.tcpip (e.g., put a # at the beginning of the line). If the service is managed by inetd, comment out the service in /etc/inetd.conf and run refresh -s inetd.
 
 
HPUX is not supported.

 
Windows GUI
 
You can simply drill into your windows services  and set "Disable" or "Manual" each of the services.​ You will also have to stop the service separately
 
 

Windows Powershell 

List all services: Get-Service
Check status: Get-Service -Name "<service_name>"
Stop a service: Stop-Service -Name "ServiceNameHere"
Disable a service: Set-Service -Name "ServiceNameHere" -StartupType Disabled
Partially Disable a service: Set-Service -Name "ServiceNameHere" -StartupType demand

Windows Command line

List all services: sc query
Check status: sc query | findstr /i "PartialName"
Stop a service: sc stop "ServiceName" or net stop <service_name>
Disable a service: sc config "ServiceName" start= disabled
Partially Disable a service: sc config "ServiceName" start= demand
Note: There must be a space after "start=" and no space between "start=" and "disabled".