From cb5cf73311ceb050979a15e36f128f008c890650 Mon Sep 17 00:00:00 2001 From: Robin Douine Date: Sat, 9 Mar 2019 11:51:46 +0100 Subject: contrib: update the service systemd --- tools/contrib/centos/gobgpd.service | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/contrib/centos/gobgpd.service b/tools/contrib/centos/gobgpd.service index 5aac6d7b..ecd72149 100644 --- a/tools/contrib/centos/gobgpd.service +++ b/tools/contrib/centos/gobgpd.service @@ -4,14 +4,15 @@ Wants=network.target After=network.target [Service] -Type=simple +Type=notify ExecStartPre=/usr/bin/gobgpd -f /etc/gobgpd/gobgpd.conf -d -ExecStart=/usr/bin/gobgpd -f /etc/gobgpd/gobgpd.conf +ExecStart=/usr/bin/gobgpd -f /etc/gobgpd/gobgpd.conf --sdnotify ExecReload=/usr/bin/gobgpd -r StandardOutput=journal StandardError=journal User=gobgpd Group=gobgpd +AmbientCapabilities = CAP_NET_BIND_SERVICE [Install] WantedBy=multi-user.target -- cgit v1.2.3