Browse Source

fix: screen quit

micha 3 years ago
parent
commit
471ff4fe7d
1 changed files with 4 additions and 0 deletions
  1. 4 0
      setup_dmx.sh

+ 4 - 0
setup_dmx.sh

@@ -1,5 +1,9 @@
 #!/usr/bin/bash
+# to execute as cron job @reboot with an admin user ! not secure !
 
+sudo su user -c 'screen -ls'
+sudo su user -c 'screen -XS DMX quit | echo ""'
+sleep 5
 sudo sh /opt/LibreLight/ASP/netns.sh 25
 sudo ip netns exec blue225 su user -c 'screen -d -m -S DMX sh /opt/LibreLight/ASP/start.sh'
 #screen -r DMX