Hello everyone,
On my Multiplus 2 GX I try to run a script at every boot. It is a .armv7 file to read SMA Home Manager 2.0 data. The script works well if I start it over an SSH session. But once disconnected, it stops to work. My goal is to start the shm-et340 script at every boot. But I am not able to run it.
I first have tried to find out how the GX boot works. If I am correct, file in /etc/init.d/ is required. But form here I am not sure anymore.
However, the file I made has this content and is called Energymeter (with no ending). The file is chmod + x and has this content:
#!/bin/sh
# chkconfig: 2345 40 80
### BEGIN INIT INFO
# Provides: shm-et340
# Required-Start: $local_fs $all
# Required-Stop:
# Default-Start: 2345
# Default-Stop:
# Short-Description: Start daemon at boot time
### END INIT INFO
PATH=/data/home/root/
NAME=shm-et340
DESC=SMA Homemanager 2.0 -> Victron EM340 faker
Afterwards I made the following: update-rc.d /etc/init.d/Energymeter defaults
However, after a reboot it is not working and no energydata is publisehed.
May please someone help me or give me a hint what to look for?
Best regards
Marc