---
title: Configuring PingAccess to run as a Linux systemd service
description: The service script will only start if <JAVA_HOME> and <PA_HOME> are set and if the script can find the PingAccess license file.
component: pingaccess
version: 9.1
page_id: pingaccess:installing_and_uninstalling_pingaccess:pa_configuring_pa_to_run_as_a_linux_systemd_service
canonical_url: https://docs.pingidentity.com/pingaccess/9.1/installing_and_uninstalling_pingaccess/pa_configuring_pa_to_run_as_a_linux_systemd_service.html
llms_txt: https://docs.pingidentity.com/pingaccess/llms.txt
docs_for_agents: https://developer.pingidentity.com/build-with-ai/docs-for-agents.md
revdate: May 8, 2024
section_ids:
  about-this-task: About this task
  steps: Steps
---

# Configuring PingAccess to run as a Linux systemd service

## About this task

|   |                                                                                                                                       |
| - | ------------------------------------------------------------------------------------------------------------------------------------- |
|   | The service script will only start if *\<JAVA_HOME>* and *\<PA_HOME>* are set and if the script can find the PingAccess license file. |

To configure PingAccess to run as a Linux systemd service:

## Steps

1. Copy the configuration file from the `<PA_HOME>/sbin/linux/pingaccess.service` directory to the `/etc/systemd/system/pingaccess.service` directory.

2. In the `pingaccess.service` file, replace the following variables:

   * Replace *<${PA_HOME}>* with the path to the PingAccess instance.

   * Replace *<${PA_USER}>* with the username used to run the service.

   * Replace *<${PA_JAVA_HOME}>* with the path to the Java installation folder.

3. To allow read-write activity on the service, run:

   ```
   chmod 644 /etc/systemd/system/pingaccess.service
   ```

4. To load the systemd service, run:

   ```
   systemctl daemon-reload
   ```

5. To enable the service, run:

   ```
   systemctl enable pingaccess.service
   ```

6. To start the service, run:

   ```
   systemctl start pingaccess.service
   ```
