fledge status output fixes; argument parsing upto n...
@@ -513,16 +513,15 @@ fledge_status() {
fledge_log "info" "=== Fledge services:" "outonly" "pretty"
fledge_log "info" "fledge.services.core" "outonly" "pretty"
ps -ef | grep "fledge.services.storage" | grep -v 'grep' | grep -v awk | awk '{print "fledge.services.storage " $9 " " $10}' || true
- ps -ef | grep "fledge.services.south" |grep python3| grep -v 'grep' | awk '{print "fledge.services.south " $11 " " $12 " " $13}' || true
- ps -ef | grep "fledge.services.south" |grep -v python3| grep -v 'grep' | grep -v awk | awk '{print "fledge.services.south " $9 " " $10 " " $11}' || true
- ps -ef | grep "fledge.services.notification" |grep -v python3| grep -v 'grep' | grep -v awk | awk '{print "fledge.services.notification " $9 " " $10 " " $11}' || true
+ ps -ef | grep "fledge.services.south " |grep -v python3| grep -v 'grep' | grep -v awk | awk '{printf "fledge.services.south "; for(i=9;i<=NF;++i) printf $i FS; printf "\n"}' || true
+ ps -ef | grep "fledge.services.notification" |grep -v python3| grep -v 'grep' | grep -v awk | awk '{printf "fledge.services.notification "; for(i=9;i<=NF;++i) printf $i FS; printf "\n"}' || true
# Show Tasks
fledge_log "info" "=== Fledge tasks:" "outonly" "pretty"
ps -ef | grep -v 'cpulimit*' | grep -o 'python3 -m fledge.tasks.*' | grep -o 'fledge.tasks.*' | grep -v 'fledge.tasks\.\*' || true
# Show Tasks in C code
- ps -ef | grep './tasks.' | grep -v python3 | grep -v grep | grep -v awk | awk '{print substr($8, 3, length($8))" "$9" "$10" "$11}' || true
+ ps -ef | grep './tasks.' | grep -v python3 | grep -v grep | grep -v awk | awk '{printf "tasks/sending_process "; for(i=9;i<=NF;++i) printf $i FS; printf "\n"}' || true
fi
;;
*)
