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
danielmarschall opened this issue Jun 18, 2017 · 6 comments

Comments

Projects
None yet
3 participants
@danielmarschall
Copy link

commented Jun 18, 2017

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

This comment has been minimized.

Copy link
Contributor

commented Jul 7, 2017

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

@danielmarschall

This comment has been minimized.

Copy link
Author

commented Jul 7, 2017

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

This comment has been minimized.

Copy link
Contributor

commented Jul 7, 2017

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.

@Mcat12

This comment has been minimized.

Copy link
Member

commented Jul 7, 2017

Also, what is the output of which systemctl?

@danielmarschall

This comment has been minimized.

Copy link
Author

commented Jul 7, 2017

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

@Mcat12

This comment has been minimized.

Copy link
Member

commented Dec 8, 2017

Does Bananian use systemd? If so, then install systemctl

@jacobsalmela jacobsalmela added this to the v3.2.1 milestone Dec 8, 2017

dschaper added a commit that referenced this issue Dec 16, 2017

fixes #1537 by checking if systemctl is found
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
You can’t perform that action at this time.