Skip to content

Commit

Permalink
systemd: Add /etc/security/limits.d/92-dcache.conf in the dcache sy…
Browse files Browse the repository at this point in the history
…stemd unit and generator.

Motivation:

Systemd does not inherite the system-wide limits and completely ignores /etc/security/limits.d/92-dcache.conf.

Modification:

Add the limits:

    LimitNOFILE=65535
    LimitNPROC=infinity

in the corresponding  dcache systemd unit and generator.

Result:

The limits successfully loaded and enabled as expected.

Acked-by:
Target: master, 4.2, 4.1, 4.0, 3.2
Require-notes: yes
Require-book: no
Patch: https://rb.dcache.org/r/11172/
Committed: master@xxx
Pull-request: https://github.com/dCache/dcache/pull/xxxx

Signed-off-by: Vincent Garonne vgaronne@gmail.com
  • Loading branch information
vingar committed Sep 13, 2018
1 parent eab3977 commit 17b5f57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions skel/lib/systemd/system-generators/dcache-generator
Expand Up @@ -37,6 +37,8 @@ for domain in $(getProperty dcache.domains); do
Environment="CLASSPATH=$CLASSPATH" "LD_LIBRARY_PATH=$JAVA_LIBRARY_PATH"
$( [ -z "$USER" ] || echo "User=$USER" )
ExecStart=${JAVA} ${JAVA_OPTIONS} "-Ddcache.home=$HOME" "-Ddcache.paths.defaults=${DCACHE_DEFAULTS}" org.dcache.boot.BootLoader start ${domain}
LimitNOFILE=65535
LimitNPROC=infinity
[Install]
WantedBy=default.target
Expand Down
2 changes: 2 additions & 0 deletions skel/lib/systemd/system/dcache.service
Expand Up @@ -9,6 +9,8 @@ Type=oneshot
ExecStart=/bin/true
ExecReload=/bin/true
RemainAfterExit=on
LimitNOFILE=65535
LimitNPROC=infinity

[Install]
WantedBy=default.target

0 comments on commit 17b5f57

Please sign in to comment.