Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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