AnsweredAssumed Answered

Start Up And Stop Script for WAM UI

Question asked by Avi_Duthaluri on Nov 16, 2017
Latest reply on Mar 22, 2018 by justin_leong

Team,

 

We recently Upgraded our CA SSO Infrastructure from 12.5 to 12.7. We are looking for Start up and Stop Scripts for WAM UI , something similar to the S98SM scripts for RHEL 7.X. Since in RHEL 7.x we need to use Systemctl and service to write the start up and stop script and not the rc2.d way, it is failing.

 

We wanted something like:

 

https://support.ca.com/us/knowledge-base-articles.TEC1171385.html

https://docops.ca.com/ca-single-sign-on/12-6-01/en/installing/install-a-policy-server/install-policy-server-on-unix/configure-auto-startup 

 

We tried:

 

#!/bin/sh - (Optional depending on shell used)
[Unit]

 

Description=This Script is used to Start and Stop the Siteminder Policy Server.
Requires=network.target
[Service]
Type=forking
User=smuser
ExecStart=/opt/Siteminder/siteminder/adminui/bin/standalone.sh &
ExecStop=/opt/Siteminder/siteminder/adminui/bin/jboss-cli.sh -c --command=:shutdown  &
Restart=on-abort
SuccessExitStatus=0 1
[Install]
WantedBy=multi-user.target

 

And then we removed the ExecStop:

 

#!/bin/sh - (Optional depending on shell used)
[Unit]

 

Description=This Script is used to Start and Stop the Siteminder Policy Server.
Requires=network.target
[Service]
Type=forking
User=smuser
ExecStart=/opt/Siteminder/siteminder/adminui/bin/standalone.sh &
Restart=on-abort
SuccessExitStatus=0 1
[Install]
WantedBy=multi-user.target

 

The error we are getting is:

 

Job for S98WAMUI.service failed because the control process exited with error code. See "systemctl status S98WAMUI.service" and "journalctl -xe" for details.

systemctl -l status S98WAMUI

● S98WAMUI.service - S98sm Service

   Loaded: loaded (/etc/systemd/system/S98WAMUI.service; enabled; vendor preset: disabled)

   Active: failed (Result: exit-code) since Tue 2017-11-14 14:22:42 EST; 14s ago

  Process: 31077 ExecStart=/opt/Siteminder/siteminder/adminui/bin/standalone.sh & (code=exited, status=1/FAILURE)

 

standalone.sh[31077]: to use (default is "standalone.xml")

standalone.sh[31077]: (Same as -c)

standalone.sh[31077]: -u <value>, -u=<value>              Set system property

standalone.sh[31077]: jboss.default.multicast.address to the

standalone.sh[31077]: given value

standalone.sh[31077]: -v, -V, --version                   Print version and exit

systemd[1]: S98WAMUI.service: control process exited, code=exited status=1

systemd[1]: Failed to start S98sm Service.

systemd[1]: Unit S98WAMUI.service entered failed state.

systemd[1]: S98WAMUI.service failed.

 

Thanks,

Avinash

Outcomes