![]() ![]() ![]() ![]() |
|
chevrolux:Edit: my understanding of Debian though is that it doesn't rc.local though....
Well, my Ubuntu 18.10 does. There's a systemd service called rc-local.service, description "/etc/rc.local Compatibility", and it does work.
● apache2.service - The Apache HTTP Server
Loaded: loaded (/etc/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: failed (Result: timeout) since Sun 2019-01-13 21:08:45 NZDT; 2min 2s ago
Process: 442 ExecStart=/usr/sbin/apachectl start (code=killed, signal=TERM)
Jan 13 21:08:34 max2play systemd[1]: Starting The Apache HTTP Server...
Jan 13 21:08:45 max2play systemd[1]: apache2.service: Start operation timed out. Terminating.
Jan 13 21:08:45 max2play systemd[1]: Failed to start The Apache HTTP Server.
Jan 13 21:08:45 max2play systemd[1]: apache2.service: Unit entered failed state.
Jan 13 21:08:45 max2play systemd[1]: apache2.service: Failed with result 'timeout'.
Thats it....
What sort of SD card are you using on this Pi? Is it a known brand Class 10 card?
Michael Murphy | https://murfy.nz
Referral Links: Quic Broadband (use R122101E7CV7Q for free setup)
Are you happy with what you get from Geekzone? Please consider supporting us by subscribing.
Opinions are my own and not the views of my employer.
Processing triggers for man-db (2.7.6.1-2) ...
pi@max2play:~ $ dd if=/dev/zero of=test bs=1048576 count=200
200+0 records in
200+0 records out
209715200 bytes (210 MB, 200 MiB) copied, 27.099 s, 7.7 MB/s
pi@max2play:~ $ dd if=test of=/dev/null bs=1048576
200+0 records in
200+0 records out
209715200 bytes (210 MB, 200 MiB) copied, 0.254257 s, 825 MB/s
I think its a sandisk.... but did buy it in a reputable? chinese shop in china :(
That is pretty slow - I would replace it with a proper SD card. It looks like that may be the reason for Apache timing out. This is only a guess as during boot the system is doing quite a few other things which could explain why a service bails out from starting.
This is mine with a Class 10 SD:
209715200 bytes (210 MB, 200 MiB) copied, 10.4511 s, 20.1 MB/s
However note also, this is also a High Endurance SD card as it has quite a few logs written to it (so is slower, but more reliable).
SD cards are cheap. Stay away from the Sandisk Ultra cards as they have rubbish controllers in them, but consider grabbing a Samsung Evo card and giving that a go - you can use something like w32diskimager or dd on *nix to image the old card to the new one.
Michael Murphy | https://murfy.nz
Referral Links: Quic Broadband (use R122101E7CV7Q for free setup)
Are you happy with what you get from Geekzone? Please consider supporting us by subscribing.
Opinions are my own and not the views of my employer.
Hey thanks. Will order one on payday. I have got that same card that you said stay away from. Dang.
Found a quicker memory card. Not much quicker. But its made quiet a big improvement. Mostly Apache2 always starts. And if it doesn't a soft reboot will mean that it does the next time. I will still get a quicker card.
Thanks everyone for your help. Im calling this one [SOLVED]
As a workaround, it may also be possible to increase a timeout setting to enable the system to wait a little longer for services to start.
That sounds very feasible
Got my memory card on the way. Has anyone put copper heatsinks on a Raspberry Pi 3 B+? Did it make much difference? Where did you get them from? Cheers
My samsung evo has made a big difference. It boots much faster. Cool
|
![]() ![]() ![]() ![]() |