Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure that sysctl can be applied on containers
Some sysctl can be applied to containers, so we add a test to prove our containers can do it. Change-Id: I40e2f0af00d6d763efcbb07306791d3cd3feff0d Fixes-Bug: #1685677
- Loading branch information
Showing
3 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# {{ ansible_managed }} | ||
|
||
[Unit] | ||
Description=Apply Kernel Variables in Container | ||
DefaultDependencies=no | ||
Conflicts=shutdown.target | ||
After=systemd-modules-load.service | ||
Before=sysinit.target shutdown.target | ||
|
||
[Service] | ||
Type=oneshot | ||
RemainAfterExit=yes | ||
ExecStart=/sbin/sysctl -p | ||
TimeoutSec=90s | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters