Capture status of sustemd services
This change allows us to check status of each systemd services in logs so that we can debug any issues with service start/stop. Change-Id: I8657f6733cbd397c52b3f7f7de9017c34e1ed2e0
This commit is contained in:
parent
3f3da39c68
commit
a89ca320aa
@ -221,6 +221,7 @@ lsmod > $LOG_DIR/lsmod.txt
|
|||||||
cat /proc/cpuinfo > $LOG_DIR/cpuinfo.txt
|
cat /proc/cpuinfo > $LOG_DIR/cpuinfo.txt
|
||||||
sudo ps -eo user,pid,ppid,lwp,%cpu,%mem,size,rss,cmd > $LOG_DIR/ps.txt
|
sudo ps -eo user,pid,ppid,lwp,%cpu,%mem,size,rss,cmd > $LOG_DIR/ps.txt
|
||||||
sudo netstat -tulpn > $LOG_DIR/netstat.txt
|
sudo netstat -tulpn > $LOG_DIR/netstat.txt
|
||||||
|
sudo systemctl status --all 2>/dev/null > $LOG_DIR/systemctl.txt
|
||||||
|
|
||||||
for table in raw filter nat mangle ; do
|
for table in raw filter nat mangle ; do
|
||||||
echo $table
|
echo $table
|
||||||
|
Loading…
Reference in New Issue
Block a user