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

service: Drop ExecRestart for systemd service file #1

Merged
merged 1 commit into from
Sep 22, 2020

Conversation

kylemanna
Copy link
Contributor

Hi,

Stumbled on this great script and wanted to get it in action and stumbled on an issue with the systemd service when running systemctl daemon-reload:

Sep 07 23:06:21 host systemd[1]: /usr/lib/systemd/system/nft-blackhole.service:12: Unknown key name 'ExecRestart' in section 'Service', ignoring.

Running on Arch Linux:

$ systemctl --version
systemd 246 (246.4-1-arch)

I believe systemctl restart ... is implemented by systemd stopping and then starting the service on it's own. Removing or commenting out the the ExecRestart fixes the warning.

Documentation for systemd.service

* ExecRestart isn't a valid option and generates a warning.
@tomasz-c tomasz-c merged commit 734c548 into tomasz-c:master Sep 22, 2020
@tomasz-c
Copy link
Owner

Hello @kylemanna,

You're right, this is a bug. Thank you for the fix.

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