niceboygithub / AqaraSmartSwitchS1E

Everything about Aqara Smart Switch S1E
Apache License 2.0
123 stars 14 forks source link

Processes are duplicated #27

Open shootnicks opened 2 months ago

shootnicks commented 2 months ago

Good afternoon.

After each re-run of the script "install_s1e2ha.sh ", my mqtt processes are duplicated. How can I make that these processes are not duplicated? image

shootnicks commented 2 months ago

I found it in the file "/data/scripts/post_init.sh " 4 identical lines. I deleted the extra lines (I left only one) and everything is ok.

waterlou commented 3 weeks ago

turn out the installation script in install_s1e2ha.sh will add one more run_s1e2ha.sh line to /data/scripts/post_init.sh that will make duplicated processes. To fix it:

chattr -i "/data/scripts/post_init.sh" ... remove duplicated lines in run_s1e2ha.sh chattr +i "/data/scripts/post_init.sh"