How to disable Policy Server automatic restart after the crash?
search cancel

How to disable Policy Server automatic restart after the crash?

book

Article ID: 24366

calendar_today

Updated On:

Products

CA Single Sign On Secure Proxy Server (SiteMinder) CA Single Sign On SOA Security Manager (SiteMinder) CA Single Sign-On

Issue/Introduction

While running a Policy Server and when Policy Server crashes, it retries to start 5 times and then the Policy Server stays down.

how to increase that 5 times to higher amount ?

 

Environment


All supported Single Sign-On (formerly SiteMinder) Policy Server versions

 

Cause

To stop the policy server services from being restarted automatically when policy server services crashes.

Resolution

Some customers may wish to not have their Policy Server be restarted automatically if a crash occurs, so the cause of the crash can be
identified before bringing the process back online.  

Here is the thing to achieve this.

Background:  

A watchdog process called "smexec" watches over the Policy Server process, by default restarting the process if it abnormally
terminates, up to 5 times in succession before deeming that the process cannot be started successfully.

Instructions: 

To control how many times the smexec process will try to bring the
Policy Server process back up, you can modify the 

siteminder.conf

file located at 

<Policy_Server_Installation_Directroy>/config

Replace <policy server installation directory> with the directory that the Policy Server was installed to, on your system.  Inside the
siteminder.conf file, locate the line which says:

SMEXEC_RESTART_THRESHOLD=5

Adjust this value to the number of times smexec should attempt to restart the Policy Server process if it terminates, or set it to 0 to instruct smexec to not attempt restarting the Policy Server at all.