Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(systemd): imp systemd add envs & prestart #301

Closed
wants to merge 1 commit into from
Closed

fix(systemd): imp systemd add envs & prestart #301

wants to merge 1 commit into from

Conversation

ysicing
Copy link

@ysicing ysicing commented Nov 8, 2021

imp systemd config

Signed-off-by: ysicing <[email protected]>
@@ -293,8 +301,18 @@ ConditionFileIsExecutable={{.Path|cmdEscape}}
{{$dep}} {{end}}

[Service]
{{if .Type}}Type={{.Type}}{{end}}
{{if .KillMode}}Type={{.KillMode}}{{end}}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{{if .KillMode}}Type={{.KillMode}}{{end}}
{{if .KillMode}}KillMode={{.KillMode}}{{end}}

@@ -86,14 +86,20 @@ const (
optionLimitNOFILE = "LimitNOFILE"
optionLimitNOFILEDefault = -1 // -1 = don't set in configuration
optionRestart = "Restart"
optionRestartSec = "RestartSec"
optionRestartSecDefault = 30

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just noting that the old default was 120, making this a breaking change.

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants