Deploy Cerbos as a systemd service
This documentation is for a previous version of Cerbos. Choose 0.39.0 from the version picker at the top right or navigate to https://docs.cerbos.dev for the latest version. |
The Cerbos Linux packages will automatically create a systemd service during installation. If you are using the tarballs to create a custom installation, you can modify the following sample systemd service definition to match your requirements.
[Unit]
Description=Cerbos Policy Decision Point
[Service]
ExecStart=/usr/local/bin/cerbos server --config=/etc/cerbos.yaml
ProtectSystem=full
ProtectHome=true
PrivateUsers=true
PrivateTmp=true
DynamicUser=yes
[Install]
WantedBy=multi-user.target
Refer to systemd documentation for more information about available configuration options.