Symantec Access Management

Expand all | Collapse all

Systemd unit file

Jump to Best Answer
  • 1.  Systemd unit file

    Posted 08-22-2018 09:11 AM

    Hello

     

    Wondering whether anybody has a handy CA Directory systemd unit file to share with the community as an alternative to the SysVinit (/etc/rc.d/init.d/dxserver) shipped with the product?

     

    Thank you

    Regards

    Rinat

    CA Tech Support



  • 2.  Re: Systemd unit file
    Best Answer

    Posted 08-23-2018 07:54 AM

    Discussing with the Engineering team, the Product is not shipped with systemd file. This might be a good Idea (Formally known as Enhancement Request) to raise with Product Management.

    If any community user has a systemd created locally which they are happy to share, that would be great.



  • 3.  RE: Re: Systemd unit file

    Posted 08-06-2020 04:05 PM
    The following is the systemd file we created for CA Directory 14.0.

    dxserver.service
    -----------------------------------------------------------
    [Unit]
    Description=CA Directory DXserver Service
    After=network.target

    [Service]
    Type=forking
    ExecStart=/etc/rc.d/init.d/dxserver start
    ExecStop=/etc/rc.d/init.d/dxserver stop
    RemainAfterExit=true

    [Install]
    WantedBy=multi-user.target
    -----------------------------------------------------------

    In addition, the OOTB systemV init.d script does not completely stop all DX components. Near the bottom of that script we added:
    -----------------------------------------------------------
    # stop dxagent
    echo | tee -a $DXLOG
    echo "Stopping the DXagent daemon" | tee -a $DXLOG
    $SU - $DXUSER -c "dxagent stop" >> $DXLOG 2>&1