diff --git a/manage.sh b/manage.sh index 3a790f4..7390d27 100755 --- a/manage.sh +++ b/manage.sh @@ -62,7 +62,7 @@ talk_to_drone() { } kill_everything() { - for p in $pids_dir/*.txt; do echo "killing $p"; pkill $(cat "$p"); done + for p in $pids_dir/*.txt; do echo "killing $p"; sudo pkill $(cat "$p"); done } diff --git a/supervisor.conf b/supervisor.conf new file mode 100644 index 0000000..8b002fe --- /dev/null +++ b/supervisor.conf @@ -0,0 +1,8 @@ +[program:drone-commander] +command=/home/uad/tello-commander/manage.sh prepare-flight +directory=/home/uad/tello-commander +autostart=true +autorestart=false +redirect_stderr=true +stdout_logfile=/home/uad/tello-commander/logs/supervisor.log +startsecs=10 diff --git a/wpa_supp.log b/wpa_supp.log deleted file mode 100644 index e69de29..0000000