pi-hole / pi-hole

A black hole for Internet advertisements
https://pi-hole.net
Other
48.68k stars 2.68k forks source link

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

Closed danielmarschall closed 6 years ago

danielmarschall commented 7 years ago

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:

(Optional) Debug token generated by pihole -d:

wx50q4m42p

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

jacobsalmela commented 7 years ago

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

danielmarschall commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

Also, what is the output of which systemctl?

danielmarschall commented 7 years ago

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.

AzureMarker commented 6 years ago

Does Bananian use systemd? If so, then install systemctl