mirror of
https://github.com/NLnetLabs/krill.git
synced 2026-09-20 16:37:43 +02:00
- Switch to O/S name based jobs instead of O/S numeric version to support Debian bullseye (which doesn't yet have a numeric Docker image tag and so cannot be run in a container by number, only by name). - Switch to official cargo-deb release that has the required systemd unit functionality. - Drop usage of empty 'job.container.image' cache key component. - Work around lack of support for `date --rfc-email` in older O/S versions. - Use a simpler and more consistent approach for waiting for network up in LXC containers. - Ensure sudo is available.
35 lines
751 B
Desktop File
35 lines
751 B
Desktop File
[Unit]
|
|
Description=Krill
|
|
Documentation=man:krill(1)
|
|
After=network.target
|
|
|
|
[Service]
|
|
ExecStart=/usr/bin/krill --config=/etc/krill.conf
|
|
Type=simple
|
|
Restart=on-failure
|
|
User=krill
|
|
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
|
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
|
LockPersonality=yes
|
|
MemoryDenyWriteExecute=yes
|
|
PrivateDevices=yes
|
|
PrivateTmp=yes
|
|
ProtectControlGroups=yes
|
|
ProtectHome=yes
|
|
ProtectKernelModules=yes
|
|
ProtectKernelTunables=yes
|
|
ProtectSystem=strict
|
|
ReadWritePaths=/var/lib/krill/
|
|
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
|
|
RestrictNamespaces=yes
|
|
RestrictRealtime=yes
|
|
StateDirectory=krill
|
|
SystemCallArchitectures=native
|
|
SystemCallErrorNumber=EPERM
|
|
RestartSec=10
|
|
StartLimitInterval=10m
|
|
StartLimitBurst=5
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|