summaryrefslogtreecommitdiffhomepage
path: root/tools/contrib/centos
diff options
context:
space:
mode:
Diffstat (limited to 'tools/contrib/centos')
-rw-r--r--tools/contrib/centos/README.md9
-rw-r--r--tools/contrib/centos/gobgpd.service2
2 files changed, 1 insertions, 10 deletions
diff --git a/tools/contrib/centos/README.md b/tools/contrib/centos/README.md
index a8416b45..68089483 100644
--- a/tools/contrib/centos/README.md
+++ b/tools/contrib/centos/README.md
@@ -12,14 +12,6 @@ mv gobgp /usr/bin/
mv gobgpd /usr/bin/
```
-Grant the capability to bind to system or well-known ports, i.e. ports with
-numbers `0–1023`, to `gobgpd` binary:
-
-```bash
-/sbin/setcap cap_net_bind_service=+ep /usr/bin/gobgpd
-/sbin/getcap /usr/bin/gobgpd
-```
-
First, create a system account for `gobgp` service:
```bash
@@ -50,7 +42,6 @@ cat << EOF > /etc/gobgpd/gobgpd.conf
neighbor-address = "$BGP_PEER"
peer-as = $BGP_AS
EOF
-chown -R gobgpd:gobgpd /etc/gobgpd/gobgpd.conf
```
Next, copy the `systemd` unit file, i.e. `gobgpd.service`, in this directory
diff --git a/tools/contrib/centos/gobgpd.service b/tools/contrib/centos/gobgpd.service
index ecd72149..7572c0d5 100644
--- a/tools/contrib/centos/gobgpd.service
+++ b/tools/contrib/centos/gobgpd.service
@@ -12,7 +12,7 @@ StandardOutput=journal
StandardError=journal
User=gobgpd
Group=gobgpd
-AmbientCapabilities = CAP_NET_BIND_SERVICE
+AmbientCapabilities=CAP_NET_BIND_SERVICE
[Install]
WantedBy=multi-user.target