Personal tools
You are here: Home Hardware Raspberry Pi 3 Disable unwanted Raspbian Services

Disable unwanted Raspbian Services

Notes on reducing unwated services on a Raspbian (Jessie - v8) based Rapberry Pi 3.

 

Disable loading wireless drivers

Disable loading the drivers for bluetooth and WiFi. As well as reducing the number of interfaces it may reduce power usage.

# cat > /etc/modprobe.d/raspi-blacklist.conf <<EOF

# WiFi
blacklist brcmfmac
blacklist brcmutil

# Bluetooth
blacklist btbcm
blacklist hci_uart
EOF

Disable bluetooth

The bluetooth service is not required

# systemctl disable bluetooth
# systemctl stop bluetooth

Disable avahi

The Pi is going to use simple uni-cast DNS - multi-cast DNS support is not required.

# systemctl disable avahi-daemon
# systemctl stop avahi-daemon

Disable TriggerHappy

The Pi isn't being used with button. Disable the TriggerHappy daemon (not that it is a init.d service)

# systemctl disable triggerhappy
# systemctl stop triggerhappy 

Links

Appendices

pstree

After shutting down unwated services pstree shows

  • dhcpd (wired LAN)
  • ntp
systemd─┬─agetty
        ├─cron
        ├─dbus-daemon
        ├─dhcpcd
        ├─ntpd
        ├─rsyslogd─┬─{in:imklog}
        │          ├─{in:imuxsock}
        │          └─{rs:main Q:Reg}
        ├─sshd───sshd───sshd───bash───pstree
        ├─systemd-journal
        ├─systemd-logind
        └─systemd-udevd

 

Document Actions