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
26e377c6
Commit
26e377c6
authored
Apr 28, 2017
by
张乐
Committed by
GitHub
Apr 28, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #603 from nobodyiam/remove-sudo-shutdown
remove sudo before shutdown as it is not needed anymore
parents
14ccb66e
4221dc66
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
27 deletions
+0
-27
sudo_before_shutdown.sh
apollo-adminservice/src/main/scripts/sudo_before_shutdown.sh
+0
-9
sudo_before_shutdown.sh
...lo-configservice/src/main/scripts/sudo_before_shutdown.sh
+0
-9
sudo_before_shutdown.sh
apollo-portal/src/main/scripts/sudo_before_shutdown.sh
+0
-9
No files found.
apollo-adminservice/src/main/scripts/sudo_before_shutdown.sh
deleted
100644 → 0
View file @
14ccb66e
#!/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
deleted
100644 → 0
View file @
14ccb66e
#!/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
deleted
100644 → 0
View file @
14ccb66e
#!/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