mirror of
https://github.com/NLnetLabs/routinator.git
synced 2024-05-19 06:50:04 +00:00
Have Routinator drop privileges in a system independent way (now that the init subcommand honours this) instead of adding user entries in systemd files, and keeping the minimal unit as minimal as it used to be.
This commit is contained in:
2
.github/workflows/pkg.yml
vendored
2
.github/workflows/pkg.yml
vendored
@ -289,7 +289,7 @@ jobs:
|
||||
sg lxd -c "lxc exec testcon -- systemctl status routinator || true"
|
||||
|
||||
echo -e "\nINIT ROUTINATOR:"
|
||||
sg lxd -c "lxc exec testcon -- sudo -u routinator routinator --config /etc/routinator/routinator.conf init --accept-arin-rpa"
|
||||
sg lxd -c "lxc exec testcon -- sudo routinator --config /etc/routinator/routinator.conf init --accept-arin-rpa"
|
||||
|
||||
echo -e "\nENABLE ROUTINATOR SERVICE:"
|
||||
sg lxd -c "lxc exec testcon -- systemctl enable routinator"
|
||||
|
3
debian/routinator-minimal.routinator.service
vendored
3
debian/routinator-minimal.routinator.service
vendored
@ -5,7 +5,6 @@ After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/routinator --config=/etc/routinator/routinator.conf --syslog server
|
||||
User=routinator
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
WantedBy=multi-user.target
|
||||
|
1
debian/routinator.routinator.service
vendored
1
debian/routinator.routinator.service
vendored
@ -7,7 +7,6 @@ After=network.target
|
||||
ExecStart=/usr/bin/routinator --config=/etc/routinator/routinator.conf --syslog server
|
||||
Type=exec
|
||||
Restart=on-failure
|
||||
User=routinator
|
||||
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
||||
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
||||
LockPersonality=yes
|
||||
|
@ -20,4 +20,6 @@
|
||||
repository-dir = "/var/lib/routinator/rpki-cache"
|
||||
tal-dir = "/var/lib/routinator/tals"
|
||||
rtr-listen = ["127.0.0.1:3323"]
|
||||
http-listen = ["127.0.0.1:8323"]
|
||||
http-listen = ["127.0.0.1:8323"]
|
||||
user = "routinator"
|
||||
group = "routinator"
|
||||
|
Reference in New Issue
Block a user