]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: define @HIGH_RLIMIT_NOFILE@ and use it everywhere
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 17 Oct 2018 08:21:48 +0000 (10:21 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 17 Oct 2018 12:54:48 +0000 (14:54 +0200)
meson.build
src/basic/def.h
src/core/system.conf.in
units/systemd-journal-gatewayd.service.in
units/systemd-journal-remote.service.in
units/systemd-journal-upload.service.in
units/systemd-journald.service.in
units/systemd-logind.service.in

index ee8ab1ae295d563b4b65824e2a1b9bd36dede948..5d5783a591e05306a38c04afd225c2f27df9f62d 100644 (file)
@@ -75,6 +75,7 @@ conf.set10('HAVE_SYSV_COMPAT', sysvinit_path != '' and sysvrcnd_path != '',
 
 conf.set10('BUMP_PROC_SYS_FS_FILE_MAX', get_option('bump-proc-sys-fs-file-max'))
 conf.set10('BUMP_PROC_SYS_FS_NR_OPEN',  get_option('bump-proc-sys-fs-nr-open'))
+conf.set('HIGH_RLIMIT_NOFILE',          256*1024)
 
 # join_paths ignore the preceding arguments if an absolute component is
 # encountered, so this should canonicalize various paths when they are
@@ -272,6 +273,7 @@ substs.set('SYSTEM_SYSVRCND_PATH',                            sysvrcnd_path)
 substs.set('RC_LOCAL_SCRIPT_PATH_START',                      get_option('rc-local'))
 substs.set('RC_LOCAL_SCRIPT_PATH_STOP',                       get_option('halt-local'))
 substs.set('MEMORY_ACCOUNTING_DEFAULT',                       memory_accounting_default ? 'yes' : 'no')
+substs.set('HIGH_RLIMIT_NOFILE',                              conf.get('HIGH_RLIMIT_NOFILE'))
 
 #####################################################################
 
index 65ad6599992e5518c6a11c4b660134fe06b08a87..005cd8d090e6d71ca4ed84cff4c724b8d2e6b639 100644 (file)
@@ -76,5 +76,4 @@
 
 #define LONG_LINE_MAX (1U*1024U*1024U)
 
-#define HIGH_RLIMIT_NOFILE (256*1024)
 #define HIGH_RLIMIT_MEMLOCK (1024ULL*1024ULL*64ULL)
index 639b5818ffb5e94f9e20790f32b96948351f028b..ef1bbbd948f652c7f53d49c6e34a7f07daf00632 100644 (file)
@@ -53,7 +53,7 @@
 #DefaultLimitSTACK=
 #DefaultLimitCORE=
 #DefaultLimitRSS=
-#DefaultLimitNOFILE=
+#DefaultLimitNOFILE=1024:@HIGH_RLIMIT_NOFILE@
 #DefaultLimitAS=
 #DefaultLimitNPROC=
 #DefaultLimitMEMLOCK=
index 7530d4c2dab18167d85023deba9cfa0d808e0e9f..a51d59d10112ac90f7463ed1c27e4a6e6e3444e6 100644 (file)
@@ -32,7 +32,7 @@ LockPersonality=yes
 
 # If there are many split up journal files we need a lot of fds to access them
 # all in parallel.
-LimitNOFILE=262144
+LimitNOFILE=@HIGH_RLIMIT_NOFILE@
 
 [Install]
 Also=systemd-journal-gatewayd.socket
index c1de676b5ca0e7c0f00f8dbc99f444d043194d67..fa8682cd2857308748bb2c030ecf0dd3af25e6a3 100644 (file)
@@ -34,7 +34,7 @@ LogsDirectory=journal/remote
 
 # If there are many split up journal files we need a lot of fds to access them
 # all in parallel.
-LimitNOFILE=262144
+LimitNOFILE=@HIGH_RLIMIT_NOFILE@
 
 [Install]
 Also=systemd-journal-remote.socket
index b6920094fb00d8ace695760d3b85cec746ffde93..1ded99087798e9f8cc07ce75a67128de782d1d5d 100644 (file)
@@ -34,7 +34,7 @@ StateDirectory=systemd/journal-upload
 
 # If there are many split up journal files we need a lot of fds to access them
 # all in parallel.
-LimitNOFILE=262144
+LimitNOFILE=@HIGH_RLIMIT_NOFILE@
 
 [Install]
 WantedBy=multi-user.target
index 2c09a8b3527d4b6edfbde693f5c5dd23bd2433a1..41cac8cf6569bb961deb85a96e5dc9023987604d 100644 (file)
@@ -37,4 +37,4 @@ IPAddressDeny=any
 
 # If there are many split up journal files we need a lot of fds to access them
 # all in parallel.
-LimitNOFILE=262144
+LimitNOFILE=@HIGH_RLIMIT_NOFILE@
index 8b264ff29dfb5eabd869edd3b688b776e9f2d54d..961263f6071495cb9843ed7042a8a55bdc6b8d57 100644 (file)
@@ -39,4 +39,4 @@ FileDescriptorStoreMax=512
 
 # Increase the default a bit in order to allow many simultaneous logins since
 # we keep one fd open per session.
-LimitNOFILE=262144
+LimitNOFILE=@HIGH_RLIMIT_NOFILE@