Skip to content

Deploying PKI Server Container as Systemd Service

Endi S. Dewata edited this page Jun 2, 2023 · 15 revisions

Overview

Note
This page is still under construction.

This document describes the process to deploy PKI server container as a systemd service using PKI 11.5 or later.

Installing Podman

$ dnf install -y podman

Installing PKI Server Image

$ podman pull quay.io/dogtagpki/pki-server

Creating Systemd Service

To create the systemd service, execute the following command:

$ ln -sf /usr/lib/systemd/system/pki-server.service
    /etc/systemd/system/pki-server.service

Then execute:

$ systemctl daemon-reload

Starting Systemd Service

To start the systemd service, execute the following command:

$ systemctl start pki-server.service

It should start pki-server container:

$ podman ps
CONTAINER ID  IMAGE                                ...     NAMES
8594b6b6e0c7  quay.io/dogtagpki/pki-server:latest  ...     pki-server

Monitoring Systemd Service

To monitor the systemd service:

$ journalctl -fu pki-server.service

To monitor the container:

$ podman logs -f pki-server

Stopping Systemd Service

To stop the systemd service, execute the following command:

$ systemctl stop pki-server.service

It should stop pki-server container.

Removing Systemd Service

To remove the systemd service, execute the following command:

$ rm -f /etc/systemd/system/pki-server.service

Then execute:

$ systemctl daemon-reload

See Also

Clone this wiki locally