4. Made it executable in case it is not: sudo chmod +x /etc/init.d/cumulusmx

reboot your system

Once it is up again, you should find a file /tmp/startup.log .
this file contain a few more information which parts of the init script are being started.
Send me the content of the file, once the you rebooted.

To revert the changes back to the original
a) sudo mv /etc/init.d/cumulusmx /etc/init.d/cumulusmx_debug
b) sudo mv /etc/init.d/cumulusmx_org /etc/init.d/cumulusmx

You do not have the required permissions to view the files attached to this post.

John
Have I already asked you, if you are able to start cumulusmx with the init script when the System is already being started? I mean 5 Minuts after system is booted?
The 4gb Card.
Wait 5 minutes After start
Check if cumulus is running (sudo /etc/init.d/cumulusmx status)
And Start it with /etc/init.d/cumulusmx start
And Check again with status. But please Keep in mind Cumulus needs about 30 seconds to fully Up and running.

jank wrote:John
Have I already asked you, if you are able to start cumulusmx with the init script when the System is already being started? I mean 5 Minuts after system is booted?
The 4gb Card.
Wait 5 minutes After start
Check if cumulus is running (sudo /etc/init.d/cumulusmx status)
And Start it with /etc/init.d/cumulusmx start
And Check again with status. But please Keep in mind Cumulus needs about 30 seconds to fully Up and running.

yes, the scripts will start CumulusMX immediately after a login, no problems.

Okay John....this is a really tricky thing
so we know, the init Script is coming to the point, where /mnt/SSD/CumulusMX/cumulusmx.sh is being started.
But for any reason, cumulusmx will not start.
You already know, there is another logfile.
I would suggest: Deletr the existing cumulusmxsh.log
sudo rm /mnt/SSD/CumulusMX/cumulusmxsh.log
restart the system and lets see, whats in the cumulusmxsh.log file. (/mnt/SSD/CumulusMX/cumulusmxsh.log)
Jan

sorry for answering late.....but a I had a lot of other things to do.....
well....I am still without any idea.

You deleted the cumulusmxsh.log and restarted the Pi.
After reboot, you looked into the cumulusmxsh.log and you can see, that while the system shutdown, it stopped the cumulusmx because you see 2 lines in this script after reboot (-q)
But, cumulusmx.sh was not started at boot time....definately not.
Then you waited 5 Minutes and started the init script manually and Cumuslux was started via init Script and cumulusmx.sh without any problems.

Conclusion: the init Script ran at reboot (Debug Version) but was not able to call the cumulusmx.sh script. (empty Logfile)

So I am out of ideas........

I have one remaining question and I am sure you already answered it, but maybe I did not get it
On your 4GB SD Card, where the init Script is not working, when you insert a "sleep 30" in the upper area of this file
for example here: sudo nano /etc/init.d/cumulusmx

jank wrote:I have one remaining question and I am sure you already answered it, but maybe I did not get it

will this work ?

I have tried a sleep at the top earlier but that does not work.

I think you are right that the cumulusmx.sh script is not run at all by the init script, for whatever reason. We know it is executable because the 8GB Jessie init can run it, but is it a permissions thing and the 4GB Jessie init has no rights?

jank wrote:you can compare the access right of the script withls -al /etc/init.d/cumulusmx

That is owned by root, but we know that runs OK. The problem is with /mnt/SSD/CumulusMX/cumulusmx.sh - we do not have any evidence of that running at boot time. Does the Jessie OS running init on the 4GB card have the same access rights as the 8GB at boot time?

water01 wrote:Surely your permissions therefore are incorrect
Therefore there is no execute permissions for root.
I would do a sudo chmod 777 /etc/init.d/cumulusmx as jank suggested then you know ALL users from ROOT upwards have execute permissions.

Hello David....hopefully this will do it...otherwise I would ran out of ideas and my last option would be, to download an image of the 4GB SD Card and test locally on my Pi, until it works

@John: For testing, please change the permissions of both file
sudo chmod 777 /etc/init.d/cumulusmx
sudo chmod 777 /mnt/SSD/CumulusMX/cumulusmx.sh
...to exclude a "missing rights" problem. Since you are the only owner and user of the raspberryPi, it should not be a security hole
Jan

jank wrote:@John: For testing, please change the permissions of both file
sudo chmod 777 /etc/init.d/cumulusmx
sudo chmod 777 /mnt/SSD/CumulusMX/cumulusmx.sh
...to exclude a "missing rights" problem. Since you are the only owner and user of the raspberryPi, it should not be a security hole

I so wanted that to work, it looked like the answer, although I think it not needed on the first one that does run at boot

John....I don't want to give up
The next thing I would do would be with this 4GB SD Card:

sudo cp -rp /mnt/SSD/CumulusMX/ /tmp/CumulusMX
This will make a copy of the complete CumulusMX folder from your external device to the SD Card
Now please change the path information in file /etc/init.d/cumulusmx

CumulusMX_HOME=/CumulusMX
I think, no other file need to be changed.
Disconnect the Externla drive with the original CumulusMX folder (Because my cumulusmx scirpt will search for folders with name CumulusMX and I have no idea which one will be found first /tmp or external drive)

Once this is done, please try again if this change is able to boot.
If not,is it possible for you to create a DD Image of your SD Card and upload it somewhere on a drive where I can download it ?
I am not sure if your onternet connection is fast enough ? I have 120Mbit/s so it should not be a problem to download a 4GB File within minutes. If yes, I would send you the commands to create an image of your SD Card
(Before you do it, you should of course change the password of the user PI )
Jan

jank wrote:Once this is done, please try again if this change is able to boot.

I'll try this tonight

jank wrote:
If not,is it possible for you to create a DD Image of your SD Card and upload it somewhere on a drive where I can download it ?
I am not sure if your onternet connection is fast enough ? I have 120Mbit/s so it should not be a problem to download a 4GB File within minutes. If yes, I would send you the commands to create an image of your SD Card