Step 2: Creating the SystemD Unit File

Jamf PKI Proxy Installation and Configuration Guide

Solution
Application
Content Type
Technical Documentation
Utilities & Services
Jamf PKI Proxy
ft:locale
en-US

  1. Create the unit file in systemd by executing the following command:
    sudo touch /etc/systemd/system/jamf.pki.proxy.service
  2. Open the file by executing the following command:
    sudo vi /etc/systemd/system/jamf.pki.proxy.service
  3. Paste the following:
    [Unit]
    Description=Jamf Pro PKI Proxy
    After=network.target
    
    [Service]
    Type=simple
    ExecStart=/usr/local/bin/jamf-pki-proxy start
    StandardOutput=journal
    StandardError=journal
    UMask= 0007
    RestartSec= 10
    Restart=on-failure
    User=jamfpkiproxy
    Group=jamfpkiproxy
    
    [Install]
    WantedBy=multi-user.target
    
  4. Reload systemd by executing the following command:
    sudo systemctl daemon-reload
  5. Check the status to make sure the systemd loaded successfully by executing the following command:
    sudo systemctl status jamf.pki.proxy
    The output should look similar to the following:
    jamf.pki.proxy.service - Jamf Pro PKI ProxyLoaded: loaded (/etc/systemd/system/jamf.pki.proxy.service; disabled; vendor preset: enabled)Active: inactive (dead)
    
  6. If you would like the service to start automatically when the host boots, execute the following command:
    sudo systemctl enable jamf.pki.proxy
  7. If you would like to stop the service from starting automatically when the host boots, execute the following command:
    sudo systemctl disable jamf.pki.proxy
  8. Start the jamf.pki.proxy.service by executing the following command:
    sudo systemctl start jamf.pki.proxy
  9. To stop the service, execute the following command:
    sudo systemctl stop jamf.pki.proxy