AqaraSmartSwitchS1E icon indicating copy to clipboard operation
AqaraSmartSwitchS1E copied to clipboard

Processes are duplicated

Open shootnicks opened this issue 1 year ago • 2 comments

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 avatar Apr 25 '24 09:04 shootnicks

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.

shootnicks avatar Apr 25 '24 18:04 shootnicks

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"

waterlou avatar Jun 09 '24 06:06 waterlou