sciurius / Growatt-WiFi-Tools

Tools for the Growatt WiFi module.
24 stars 7 forks source link

Start server as service #3

Open ghost opened 5 years ago

ghost commented 5 years ago

When I use your systemd files it keep spawing new instances. After booting I already have 2 instances... en they keep coming, why?

running on a raspberry pi.

 1523 ?        Ss     0:01 /usr/bin/perl /home/pi/Growatt-WiFi-Tools/scripts/growatt_server.pl --systemd --datadir=/home/pi/Growatt-WiFi-Tools/data/
 1695 ?        Ss     0:01 /usr/bin/perl /home/pi/Growatt-WiFi-Tools/scripts/growatt_server.pl --systemd --datadir=/home/pi/Growatt-WiFi-Tools/data/
 1896 ?        Ss     0:01 /usr/bin/perl /home/pi/Growatt-WiFi-Tools/scripts/growatt_server.pl --systemd --datadir=/home/pi/Growatt-WiFi-Tools/data/
sciurius commented 5 years ago

A wild guess is that your Growatt is continously reconnecting. Do the log files show anything interesting? You can change the systemd file to pass --debug to the server, it should write extensive information to the log file.

ghost commented 5 years ago

Check it out when the sun is up :-)