summaryrefslogtreecommitdiffhomepage
path: root/contrib/centos/add_gobgpd_account.sh
diff options
context:
space:
mode:
authorPaul Greenberg <greenpau@outlook.com>2018-04-21 04:00:12 -0400
committerPaul Greenberg <greenpau@outlook.com>2018-04-21 05:49:09 -0400
commit756cc9162afb675dd7ca159b6f07a6d5b927bcc1 (patch)
treea7348b67229a73039c8b2059aee47bb682b202b1 /contrib/centos/add_gobgpd_account.sh
parentd6c16da8988298e1098b50bb57af45004e0c146e (diff)
contrib: systemd unit files and docs
This commit contains `systemd` unit file and the documentation describing how to run `gobgp` as `systemd` managed service on CentOS/RHEL Linux distribution. Signed-off-by: Paul Greenberg <greenpau@outlook.com>
Diffstat (limited to 'contrib/centos/add_gobgpd_account.sh')
-rwxr-xr-xcontrib/centos/add_gobgpd_account.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/centos/add_gobgpd_account.sh b/contrib/centos/add_gobgpd_account.sh
new file mode 100755
index 00000000..05ee46fe
--- /dev/null
+++ b/contrib/centos/add_gobgpd_account.sh
@@ -0,0 +1,6 @@
+groupadd --system gobgpd
+useradd --system -d /var/lib/gobgpd -s /bin/bash -g gobgpd gobgpd
+mkdir -p /var/{lib,run,log}/gobgpd
+chown -R gobgpd:gobgpd /var/{lib,run,log}/gobgpd
+mkdir -p /etc/gobgpd
+chown -R gobgpd:gobgpd /etc/gobgpd