Posts: 14
Joined: Thu Dec 08, 2016 10:31 am

Do I need this services to boot ?

Thu Oct 19, 2017 8:11 am

Hello all,

Trying to shave off some time from boot of rpi zero w and main culprits are:
6.024s dev-mmcblk0p2.device
5.645s hciuart.service
3.886s php7.0-fpm.service
3.884s networking.service
3.863s nginx.service
3.286s keyboard-setup.service
3.089s dphys-swapfile.service
1.868s raspi-config.service
1.740s ntp.service
1.616s lightdm.service
1.563s systemd-udev-trigger.service
1.502s systemd-logind.service
1.278s avahi-daemon.service
1.244s phpsessionclean.service
1.191s systemd-journald.service
1.184s systemd-udevd.service
1.181s systemd-fsck-root.service

I know I need most of them so there is probably nothing to do, but what about:

keyboard-setup.service - I was googling around and could not find normal answer... is it needed when there is no keyboard attached ? ( only ssh )
raspi-config.service - What does it do, ,is it needed ?
ntp.service - Hmm I was thinking turning this off and have the time synced every 30 min by cron
avahi-daemon.service - I think this can be turned off, no need for zeroconf discovery on net

User avatar
Posts: 33787
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: Do I need this services to boot ?

Thu Oct 19, 2017 9:39 am

dev-mmcblk0p2 is the filesystem check for your SDCard
hciuart is bluetooth.
php7.0-fpm is the php handler for NGinx
Networking is, kind of, essential or your RPi isn't much more use than a chocolate teapot
NGinx is your web server
Keyboard-setup is only needed if you're not running headless
dphys-swapfile allows you to overcommit RAM and swap to your SDCard
raspi-config is a one-shot set-up process for Raspbian
ntp can be replaced with systemd-timesyncd, don't do time sync from cron
lightdm is the GUI login screen or the GUI autologin
udev-trigger is the "hotplug" manager, that allows you to plug in USB devices
logind is essential, it starts the getty that allows lightdm to autologin
avahi-daemon is the mDSN Bonjour service that allows other devices (like Apple things) to find your RPi on your network
systemd-journal, systemd-udevd are essential operating system services
systemd-fsck-root is a one-shot process that ensures your root filesystem is intact

If you're running headless then set the "boot to command line login" in sudo raspi-config. That will disable a bunch of non-essential services for you.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

2012-18: 1B*5, 2B*2, B+, A+, Z, ZW, 3Bs*3, 3B+

Any DMs sent on Twitter will be answered next month.

Return to “Raspbian”

Who is online

Users browsing this forum: Bing [Bot] and 19 guests