yoyothechicken
Posts: 4
Joined: Fri Jul 22, 2016 6:22 pm

executing commands on from startup

Tue Aug 09, 2016 8:25 pm

Hello again,

I finally got the tftp server from previous posts to work successfully, and now I am trying to get it to start running when the Raspberry Pi boots up (I'm using a Pi 3 with Raspbian Jesse). I followed this tutorial:

https://www.raspberrypi.org/documentati ... c-local.md

Below is an image of the rc.local file I modified, which should start the tftp server running when the pi starts up.
rc_local.PNG
rc_local.PNG (21.24 KiB) Viewed 646 times
However, following the startup, we can see that the tftp server has not started running, and must be manually started (seen below).
startup top.PNG
startup top.PNG (56.39 KiB) Viewed 646 times
startup bottom.PNG
startup bottom.PNG (52.89 KiB) Viewed 646 times
I tested whether the commands in the rc.local file were being reached by adding a command to run a Python program to blink an LED light on an attached breadboard (seen in the image for the rc.local file). The program does not have any trouble running when the pi starts up.

I don't know why the command to start the tftp server at startup is not working. Can anyone please help explain this phenomenon?

Thanks

JumpZero
Posts: 1137
Joined: Thu Mar 28, 2013 7:35 pm
Location: 127.0.0.1

Re: executing commands on from startup

Tue Aug 09, 2016 8:34 pm

Hum,
I don't know tftpd-hpa but you are running Jessie. Jessie uses systemd so you don't need to launch it from rc.local
a command

Code: Select all

sudo systemctl enable tftpd-hpa
shoul enable the service. It should start at each boot.
https://wiki.debian.org/systemd
--
Jmp0

Return to “General discussion”