Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-10845

A systemd script is requested to start/stop the Tomcat container in which the OpenAM server runs

    XMLWordPrintable

    Details

    • Rank:
      1|hzt2fz:
    • Support Ticket IDs:

      Description

      A manual startup script for OpenAM already provides a SysV init.d script in the OpenAM 13.5 documentation.

      Refer to https://backstage.forgerock.com/docs/openam/13.5/install-guide/chap-prepare-install - section 1.9 Preparing Apache Tomcat.

      The following changes would need to be made...

      1. create the file tomcat.service and place it in the directory /etc/systemd/service. Or alternatively create it in_ /lib/systemd/system_.

      ie. /etc/system/systemd/service/tomcat.service --> /lib/systemd/service/tomcat.service

      2. the contents of the tomcat.service file need to follow the format...

      _[Unit]
      Description=Apache Tomcat
      After=syslog.target network.target remote-fs.target nss-lookup.target
      [Service]
      PIDFile=
      ExecStart=<tomcat_location>/bin/startup.sh
      User=<user>
      ExecReload=
      ExecStop=
      PrivateTmp=true
      [Install]
      WantedBy=multi-user.target_

      Note: The PIDFILE would only be needed if using 'kill -9 <pid>' to terminate the process.

      3. During testing / deployment reload daemons, so that systemd will find this new service.

      systemctl daemon-reload

      4. Set service to start on boot and start it now.
      _systemctl enable tomcat
      systemctl start tomcat_

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              cristina.herraz Cristina Herraz
              Reporter:
              gyan.baines Gyan Baines
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: