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

systemctl "Command not found" when executing pihole -d #1537

Closed
3 tasks done
danielmarschall opened this issue Jun 18, 2017 · 6 comments
Closed
3 tasks done

systemctl "Command not found" when executing pihole -d #1537

danielmarschall opened this issue Jun 18, 2017 · 6 comments
Assignees
Labels
Bug: Confirmed Verified as a bug to be resolved Fixed in next release
Milestone

Comments

@danielmarschall
Copy link

In raising this issue, I confirm the following (please check boxes, eg [X]) Failure to fill the template will close your issue:

How familiar are you with the codebase?: 1


[FEATURE REQUEST | QUESTION | OTHER]:

Please submit your feature request here, so it is votable by the community. It's also easier for us to track.

[BUG | ISSUE] Expected Behaviour:
No error message

[BUG | ISSUE] Actual Behaviour:
::: Logging status of lighttpd, dnsmasq and pihole-FTL...
/opt/pihole/piholeDebug.sh: Zeile 376: systemctl: Kommando nicht gefunden.
/opt/pihole/piholeDebug.sh: Zeile 376: systemctl: Kommando nicht gefunden.
/opt/pihole/piholeDebug.sh: Zeile 376: systemctl: Kommando nicht gefunden.

Translated: "Command not found"

[BUG | ISSUE] Steps to reproduce:

  • Run pihole -d

(Optional) Debug token generated by pihole -d:

wx50q4m42p

This template was created based on the work of udemy-dl.

@jacobsalmela
Copy link
Contributor

Sorry there was no activity on this for a while. What system are you running Pi-hole on?

@danielmarschall
Copy link
Author

Hello,

I have the latest stable Bananian with all updates installed.

[09:09]root@bananapi:~$ uname -a
Linux bananapi 3.4.113-bananian #8 SMP PREEMPT Sat Nov 26 00:48:28 UTC 2016 armv7l GNU/Linux

@jacobsalmela
Copy link
Contributor

Bananian is not a supported OS, but it seems systemd is not functioning or installed...We'll still try our best to help out. Run another pihole -d, too.

@AzureMarker
Copy link
Contributor

Also, what is the output of which systemctl?

@danielmarschall
Copy link
Author

Hello,

thank you for your answer. Beside of this small issue, pihole works fine on my Bananian. If I can help to make everything compatible, I'd love to help.

Indeed, systemctl is not installed.

The command "systemctl is-active " could be replaced by "service status".

But "service pihole-FTL status" doesn't work, because the function "status()" is missing. It should be implemented, querying a pid file or something, like /etc/init.d/dnsmasq does it for example.

@jacobsalmela jacobsalmela self-assigned this Dec 8, 2017
@AzureMarker
Copy link
Contributor

Does Bananian use systemd? If so, then install systemctl

@jacobsalmela jacobsalmela added the Bug: Confirmed Verified as a bug to be resolved label Dec 8, 2017
@jacobsalmela jacobsalmela added this to the v3.2.1 milestone Dec 8, 2017
dschaper pushed a commit that referenced this issue Dec 16, 2017
Signed-off-by: Jacob Salmela <github@decoy.email>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug: Confirmed Verified as a bug to be resolved Fixed in next release
Projects
None yet
Development

No branches or pull requests

3 participants