Raspivid on startup

We use systemd to manage services. That’s why I recommend this page to get started. Even though it looks kinda intimidating at first, this is just robust and rigorous. In the nutshell all you need to do:

  1. create a simple service file (for example, let it be raspicam.service) which contains something like this:
[Unit]
Description=raspivid
After=network.target

[Service]
ExecStart=/usr/bin/raspivid -n ....

[Install]
WantedBy=default.target
  1. put it in /etc/systemd/system/

  2. sudo systemctl daemon-reload to let systemd know of this service

  3. sudo systemctl start raspivid to test it out

  4. sudo systemctl enable raspivid to enable on boot

3 Likes