Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apollo
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
apollo
Commits
05c3c67b
Commit
05c3c67b
authored
Oct 24, 2016
by
张乐
Committed by
GitHub
Oct 24, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #444 from nobodyiam/increase-open-file-limit
add sudo_before_shutdown.sh
parents
d2fa22b4
32fac7b4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
0 deletions
+27
-0
sudo_before_shutdown.sh
apollo-adminservice/src/main/scripts/sudo_before_shutdown.sh
+9
-0
sudo_before_shutdown.sh
...lo-configservice/src/main/scripts/sudo_before_shutdown.sh
+9
-0
sudo_before_shutdown.sh
apollo-portal/src/main/scripts/sudo_before_shutdown.sh
+9
-0
No files found.
apollo-adminservice/src/main/scripts/sudo_before_shutdown.sh
0 → 100644
View file @
05c3c67b
#!/bin/bash
if
grep
-Fq
"LimitNOFILE"
/usr/lib/systemd/system/ctripapp
\@
100003172.service
;
then
echo
"already set LimitNOFILE"
;
else
sed
-i
'/\[Service\]/a\LimitNOFILE=65536'
/usr/lib/systemd/system/ctripapp
\@
100003172.service
;
systemctl daemon-reload
fi
\ No newline at end of file
apollo-configservice/src/main/scripts/sudo_before_shutdown.sh
0 → 100644
View file @
05c3c67b
#!/bin/bash
if
grep
-Fq
"LimitNOFILE"
/usr/lib/systemd/system/ctripapp
\@
100003171.service
;
then
echo
"already set LimitNOFILE"
;
else
sed
-i
'/\[Service\]/a\LimitNOFILE=65536'
/usr/lib/systemd/system/ctripapp
\@
100003171.service
;
systemctl daemon-reload
fi
\ No newline at end of file
apollo-portal/src/main/scripts/sudo_before_shutdown.sh
0 → 100644
View file @
05c3c67b
#!/bin/bash
if
grep
-Fq
"LimitNOFILE"
/usr/lib/systemd/system/ctripapp
\@
100003173.service
;
then
echo
"already set LimitNOFILE"
;
else
sed
-i
'/\[Service\]/a\LimitNOFILE=65536'
/usr/lib/systemd/system/ctripapp
\@
100003173.service
;
systemctl daemon-reload
fi
\ No newline at end of file
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