Personally I don't like the use of /etc/rc.local . Maybe as a last resort, but it's ugly. So let's prefer a systemd service file (atariserver.service):
[Unit]
Description=AtariServer - 8-bit Atari floppy emulator and web server for Raspberry Pi
ConditionPathExists=/dev/ttyAMA0
[Service]
Type=simple
ExecStart=/usr/local/bin/atariserver -w /home/pi/AtariServer-master/web-root -b /home/pi/AtariServer-master/atr/hisioboot-atarisio.atr -d /home/pi/files -C
StandardOutput=tty
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
It is not perfect for now as it starts before wpa_supplicant on my rpi0w for example, but it's a good starting point, I think.
Personally I don't like the use of /etc/rc.local . Maybe as a last resort, but it's ugly. So let's prefer a systemd service file (atariserver.service):
It is not perfect for now as it starts before wpa_supplicant on my rpi0w for example, but it's a good starting point, I think.