Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
c824c3bc
Commit
c824c3bc
authored
May 14, 2021
by
Brad Davidson
Committed by
Brad Davidson
May 17, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for multiple env files for systemd unit
Signed-off-by:
Brad Davidson
<
brad.davidson@rancher.com
>
parent
fd4d226e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
install.sh
install.sh
+3
-1
k3s.service
k3s.service
+2
-0
No files found.
install.sh
View file @
c824c3bc
...
@@ -728,7 +728,9 @@ WantedBy=multi-user.target
...
@@ -728,7 +728,9 @@ WantedBy=multi-user.target
[Service]
[Service]
Type=
${
SYSTEMD_TYPE
}
Type=
${
SYSTEMD_TYPE
}
EnvironmentFile=
${
FILE_K3S_ENV
}
EnvironmentFile=-/etc/default/%N
EnvironmentFile=-/etc/sysconfig/%N
EnvironmentFile=-
${
FILE_K3S_ENV
}
KillMode=process
KillMode=process
Delegate=yes
Delegate=yes
# Having non-zero Limit*s causes performance problems due to accounting overhead
# Having non-zero Limit*s causes performance problems due to accounting overhead
...
...
k3s.service
View file @
c824c3bc
...
@@ -6,6 +6,8 @@ Wants=network-online.target
...
@@ -6,6 +6,8 @@ Wants=network-online.target
[Service]
[Service]
Type=notify
Type=notify
EnvironmentFile=-/etc/default/%N
EnvironmentFile=-/etc/sysconfig/%N
EnvironmentFile=-/etc/systemd/system/k3s.service.env
EnvironmentFile=-/etc/systemd/system/k3s.service.env
ExecStart=/usr/local/bin/k3s server
ExecStart=/usr/local/bin/k3s server
KillMode=process
KillMode=process
...
...
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