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

Make kodi-config return a zero exit status #3983

Merged
merged 1 commit into from Nov 15, 2019

Conversation

jsgh
Copy link

@jsgh jsgh commented Nov 15, 2019

If /storage/.config/kodi.conf doesn't exist (which it doesn't by default), then the failing "test -f" at the end of this script causes it to return a non-zero exit status, which it turn causes systemd to record it as failed when it runs it as a pre-start for the main kodi service (and show it as such in "systemctl status kodi"), which is ugly. Instead force the exit status back to 0.

@InuSasha
Copy link
Member

Instead of blind returning "ok", it is better to convert the test into an if-statement.

@MilhouseVH
Copy link
Contributor

@jsgh thanks for this, and I agree with @InuSasha - I should have realised this could be an issue when I added that line, so my bad. If you can change this to an if .. fi block a backport for libreelec-9.2 will also be welcome! 😄

@jsgh
Copy link
Author

jsgh commented Nov 15, 2019

Done, and backport raised as #3985

@MilhouseVH MilhouseVH merged commit 8515068 into LibreELEC:master Nov 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants