November 2018
Beginner
472 pages
13h 5m
English
We encountered systemd in the voice control chapter as a way to automatically start the PulseAudio system. Here, you can use systemd to start the menu when the Raspberry Pi is ready. See additional reading for more information about Raspberry Pi systemd.
This is done by creating a unit file, which we will copy into place on our Pi.
Call this file menu_server.service. First we give it a description, and tell systemd to start our service after we have networking on our Raspberry Pi:
[Unit]Description=Robot Menu Web ServiceAfter=network.target...
Now, we tell systemd we want this to start as the Pi is ready for users to log in:
...[Install]WantedBy=multi-user.target...
The next section configures ...