Systemctl conf to start and stop the AdminUI and the Policy Server
search cancel

Systemctl conf to start and stop the AdminUI and the Policy Server

book

Article ID: 281921

calendar_today

Updated On:

Products

SITEMINDER

Issue/Introduction


How to stop and start the AdminUI and the Policy Server using systemctl?

 

Resolution


Use the instruction from the documentation section "Configure Auto Startup for RHEL 7 and above" (1). 

Instead of using start-all and stop-all, set the systemctl script to run start-ps and stop-ps instead:

  [Unit]
  Description=S98sm Service
  Requires=network.target

  [Service]
  Type=forking
  User=root
  ExecStart=/{home_policy_server}/start-ps
  ExecStop=/{home_policy_server}/stop-ps
  Restart=on-abort
  LimitNOFILE=4096
  SuccessExitStatus=0 1

  [Install]
  WantedBy=multi-user.target

The start-ps and stop-ps should have the sourcing of the Environment variable for that to work.

Also, make sure that the Policy Store is up and running before starting it.

stop-ps:

  #!/bin/ksh
  ################################################################################
  #                      "stop-ps" Installation Script
  ################################################################################

  . "/{home_policy_server}/ca_ps_env.ksh"

  [...omitted for brevity...]

start-ps:

  #!/bin/ksh
  ################################################################################
  #                      "start-ps" Installation Script
  ################################################################################

  . "/{home_policy_server}/ca_ps_env.ksh"

  [...omitted for brevity...]

The same can be configured with the AdminUI, except that the Type should be set to simple:

  Description=AdminUI Service
  Requires=network.target

  [Service]
  Type=simple
  User=root
  ExecStart=/{home_policy_server}/adminui/bin/standalone.sh
  ExecStop=/{home_policy_server}/adminui/bin/standalone.sh
  Restart=on-abort
  LimitNOFILE=4096
  SuccessExitStatus=0 1

  [Install]
  WantedBy=multi-user.target

 

Additional Information