Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
slapos.package
Commits
3134addb
Commit
3134addb
authored
Jan 03, 2013
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add limits.conf file
parent
5c4f0fe6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
slapprepare/slapprepare/slapprepare.py
slapprepare/slapprepare/slapprepare.py
+10
-0
slapprepare/slapprepare/template/limits.conf.in
slapprepare/slapprepare/template/limits.conf.in
+5
-0
No files found.
slapprepare/slapprepare/slapprepare.py
View file @
3134addb
...
@@ -256,6 +256,16 @@ def slapserver(config):
...
@@ -256,6 +256,16 @@ def slapserver(config):
'template/ifcfg-br0.in'
).
read
())
'template/ifcfg-br0.in'
).
read
())
# Creating default limits config
limits_conf_path
=
os
.
path
.
join
(
mount_dir_path
,
'etc'
,
'security'
,
'limits.conf'
)
print
"Overriding %s"
%
limits_conf_path
if
not
dry_run
:
open
(
limits_conf_path
,
'w'
).
write
(
pkg_resources
.
resource_stream
(
__name__
,
'template/limits.conf.in'
).
read
())
# Writing ssh key
# Writing ssh key
if
config
.
need_ssh
:
if
config
.
need_ssh
:
user_path
=
os
.
path
.
normpath
(
'/'
.
join
([
mount_dir_path
,
'root'
]))
user_path
=
os
.
path
.
normpath
(
'/'
.
join
([
mount_dir_path
,
'root'
]))
...
...
slapprepare/slapprepare/template/limits.conf.in
0 → 100644
View file @
3134addb
* hard nproc 8096
* soft nproc 1024
root hard nofile 32768
root soft nofile 16384
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment