summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2011-07-26 15:16:13 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2011-07-26 15:16:13 +0000
commit77bf193bfb53ebae361e10342c5f5581c4374be1 (patch)
tree2e129c6f2e320f5bbbd9f81487a2e92ad19ea43a /etc
parent0cbdaa5d5265b7e61018485ec580142f459a8bff (diff)
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@
Diffstat (limited to 'etc')
-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: