Closed tjboldt closed 4 months ago
According to How do you make a systemd service as the last service on boot?, adding instead
[Service]
Type=idle
is a more accurate, efficent and faster working solution. I've tested it a few times, and the issue hasn't happened.
@dkgeorge I did some digging and it seems there are quite a few dependencies to put into the file if I wanted to add After=
so I think your suggestion of Type=idle
is best. If you want to show up as a contributor, you could fork, add that line to RaspberryPi/setup.sh
in two places and make a pull request. If not, I'll make the change and just add you to the thanks in the readme.
diff --git a/RaspberryPi/setup.sh b/RaspberryPi/setup.sh
index 51de4f8..18e4195 100644
--- a/RaspberryPi/setup.sh
+++ b/RaspberryPi/setup.sh
@@ -58,6 +58,7 @@ sudo --preserve-env=HOME --preserve-env=USER bash -c 'cat > apple2driver.service
Description=Apple2-IO-RPi Driver (Pico edition)
[Service]
+Type=idle
ExecStart=$HOME/Apple2-IO-RPi/RaspberryPi/apple2driver/apple2driver -cdc=true
StandardOutput=syslog
StandardError=syslog
@@ -75,6 +76,7 @@ sudo --preserve-env=HOME --preserve-env=USER bash -c 'cat > apple2driver.service
Description=Apple2-IO-RPi Driver (Classic edition)
[Service]
+Type=idle
ExecStart=$HOME/Apple2-IO-RPi/RaspberryPi/apple2driver/apple2driver
StandardOutput=syslog
StandardError=syslog
Thanks. Pull request created.
Fixed with #177
What happened?
CygnusTM reported:
The apple2driver.service fails on autostart every time the Pi reboots. Then it will work fine if I restart the service
dkgeorge also had this issue:
Was having the same issue and included the line below the [Service] section of /etc/systemd/system/apple2driver.service
This fixed the problem. Apparently apple2driver.service was attempting to start too early during boot.
Hardware Version
Sixth Prototype (lastest classic hardware)
Firmware Version
0010 (classic hardware)
Driver Version
002D (add support for RPi Pico hardware)
Shell Version
000F (classic hardware support)
Where are you seeing this problem?
Boot
What computer is this running on?
Apple //e (enhanced / platinum)