Our systemd setup included both a controller and worker configuration example, and a %i templated config file meant to be used to determine which to use. For ease of use, merge the two config files into a predictably named "boundary.hcl".
24 lines
582 B
Desktop File
24 lines
582 B
Desktop File
[Unit]
|
|
Description="HashiCorp Boundary - Identity-based access management for dynamic infrastructure"
|
|
Documentation=https://www.boundaryproject.io/docs
|
|
StartLimitIntervalSec=60
|
|
StartLimitBurst=3
|
|
|
|
[Service]
|
|
EnvironmentFile=-/etc/boundary.d/boundary.env
|
|
User=boundary
|
|
Group=boundary
|
|
ProtectSystem=full
|
|
ProtectHome=read-only
|
|
ExecStart=/usr/bin/boundary server -config=/etc/boundary.d/boundary.hcl
|
|
ExecReload=/bin/kill --signal HUP $MAINPID
|
|
KillMode=process
|
|
KillSignal=SIGINT
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
TimeoutStopSec=30
|
|
LimitMEMLOCK=infinity
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|