summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsthen <sthen@openbsd.org>2011-07-26 15:16:12 +0000
committersthen <sthen@openbsd.org>2011-07-26 15:16:12 +0000
commit63b2fa8ea017ac58358f761ec5f50383e13bf8da (patch)
treec23c41074488fee63b3c2f1296ed3ba384210049
parentdo not describe where DELAY comes from; pointed out by austin; ok jsg (diff)
downloadwireguard-openbsd-63b2fa8ea017ac58358f761ec5f50383e13bf8da.tar.xz
wireguard-openbsd-63b2fa8ea017ac58358f761ec5f50383e13bf8da.zip
Show an example of overriding a limit for a specific daemon with rc.d(8).
Use bgpd(8) for this which on a peering router often needs openfiles-cur to be higher than the default. ok henning@ claudio@ deraadt@
-rw-r--r--etc/login.conf.in9
1 files changed, 8 insertions, 1 deletions
diff --git a/etc/login.conf.in b/etc/login.conf.in
index 04a4998eb56..0109037e126 100644
--- a/etc/login.conf.in
+++ b/etc/login.conf.in
@@ -1,4 +1,4 @@
-# $OpenBSD: login.conf.in,v 1.3 2010/12/17 05:33:06 tedu Exp $
+# $OpenBSD: login.conf.in,v 1.4 2011/07/26 15:16:12 sthen Exp $
#
# Sample login.conf file. See login.conf(5) for details.
@@ -84,3 +84,10 @@ authpf:\
:welcome=/etc/motd.authpf:\
:shell=/usr/sbin/authpf:\
:tc=default:
+
+#
+# Override resource limits for certain daemons started by rc.d(8)
+#
+bgpd:\
+ :openfiles-cur=512:\
+ :tc=daemon: