ca-access-gateway.service fails
search cancel

ca-access-gateway.service fails

book

Article ID: 204823

calendar_today

Updated On:

Products

CA Single Sign On Secure Proxy Server (SiteMinder) CA Single Sign On Agents (SiteMinder) CA Single Sign On Federation (SiteMinder) CA Single Sign On SOA Security Manager (SiteMinder) SITEMINDER

Issue/Introduction

We have created a systemd unit file, ca-access-gateway.service, to start Access Gateway:

[Unit]
Description=CA Access Gateway Service
Requires=network.target

[Service]
Type=forking
User=root
ExecStart=/opt/CA/secure-proxy/proxy-engine/sps-ctl startssl
ExecStop=/opt/CA/secure-proxy/proxy-engine/sps-ctl stop
RestartSec=60
Restart=always

[Install]
WantedBy=multi-user.target

It fails when we start it:

# systemctl start ca-access-gateway
Job for ca-access-gateway.service failed because the control process exited with error code. See "systemctl status ca-access-gateway.service" and "journalctl -xe" for details.

journal -xe shows:

-- The result is failed.
Dec 09 18:31:09 myserver systemd[1]: Unit ca-access-gateway.service entered failed state.
Dec 09 18:31:09 myserver systemd[1]: ca-access-gateway.service failed.
Dec 09 18:31:09 myserver polkitd[5521]: Unregistered Authentication Agent for unix-process:19728:880208 (system bus name :1.98, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)

Environment

Release : 12.8

Component : SITEMINDER -WEB AGENT FOR APACHE

Resolution

This was solved by adding bash to the ExecStart and ExecStop lines:

[Unit]
Description=CA Access Gateway Service
Requires=network.target

[Service]
Type=forking
User=root
ExecStart=/bin/bash -c "/opt/CA/secure-proxy/proxy-engine/sps-ctl startssl"
ExecStop=/bin/bash -c "/opt/CA/secure-proxy/proxy-engine/sps-ctl stop"
RestartSec=60
Restart=always

[Install]
WantedBy=multi-user.target