mirror of https://framagit.org/kyodev/kyopages.git
getInfo 2.35.1
This commit is contained in:
parent
19c78c6c1f
commit
2cbc1f7633
|
@ -1717,10 +1717,14 @@ fi_system_analyse(){ # 15/11/2017
|
|||
# un lien local ne s'ouvrira pas automatiquement :( : http://kb.mozillazine.org/Links_to_local_pages_do_not_work
|
||||
# srvcFail=$( systemctl --state=active,failed | grep -cE 'error|not-found|failed' )
|
||||
srvcFail=$( systemctl --state=active,failed | gawk '/error|not-found|failed/ { sub(/●/,"");
|
||||
printf "%-40s%-11s%-8s%-8s%s",$1,$2,$3,$4,$5; $1=$2=$3=$4=$5=""; print $0}' )
|
||||
printf "%-40s %-11s %-8s %-8s %s",$1,$2,$3,$4,$5; $1=$2=$3=$4=$5=""; print $0}' )
|
||||
if [ $(f__wcv -l $srvcFail) -gt 0 ]; then
|
||||
alert_srvcFail="des services sont en erreur"
|
||||
srvcFail=$( printf "%-40s%-11s%-8s%-8s%s" Unit Load Active Sub Description )"\n$srvcFail"
|
||||
srvcFail_list=$( gawk '{print "systemctl status "$1}' <<< "$srvcFail" )
|
||||
srvcFail=$( printf "%-40s %-11s %-8s %-8s %s" Unit Load Active Sub Description )$'\n'"$srvcFail"
|
||||
alert_srvcFail="des services sont en erreur, en savoir plus: \n"
|
||||
alert_srvcFail+='```\n'
|
||||
alert_srvcFail+="$srvcFail_list \n"
|
||||
alert_srvcFail+='```\n'
|
||||
fi
|
||||
###
|
||||
text="## analyse boot systemd \n\n"
|
||||
|
@ -1746,6 +1750,7 @@ fi_systeme(){ # 15/11/2017
|
|||
initDaemon="$(ps -p1 | gawk 'FNR==2 {print $4}')" #? ps -ax | gawk '$1==1' ou ps -p1 | gawk '$1==1'
|
||||
[ "$initDaemon" == "systemd" ] && initDaemon=$( systemd --version)
|
||||
initDaemon=${initDaemon%%[[:space:]]+*}
|
||||
initDaemon=${initDaemon/systemd/systemd version }
|
||||
[ "$ENV_SSH" ] && xorg="n/a (ssh)" || xorg="$XDG_SESSION_TYPE"
|
||||
if [ -z "$xorg" ]; then
|
||||
[ "$(ps -ef | grep -c 'wayland')" -gt 1 ] && xorg="wayland" || xorg="indéterminé"
|
||||
|
@ -3207,7 +3212,7 @@ for j in $options; do
|
|||
case $j in
|
||||
-t | --test )
|
||||
prg_1 "$*"
|
||||
fi_vrms
|
||||
fi_system_analyse
|
||||
exit ;; # test
|
||||
-c* | all )
|
||||
[ "$j" == "-c" ] && exec $0 "menu"
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
|
||||
|
||||
## 2.35.0 15/11/2017
|
||||
## 2.35.1 15/11/2017
|
||||
|
||||
* nouveau, révision : f_display, fi_system_analyse, affichage + services critiques, graphique services au chargement
|
||||
* nouveau: fi_systeme, version systemd
|
||||
|
|
Loading…
Reference in New Issue