2016-10-05

agettyを再起動する方法

yum updateしたら、どうもagettyが更新されたようでdeletedな状態となってしまいました。
  1. # lsof|grep del  
  2. agetty    2777      root  txt      REG       202,1 36184   401041 /sbin/agetty (deleted)  

OSごと再起動してしまえば済むのでしょうけれど、OSは再起動せずにagettyだけ再起動できないものかと

restart agetty

みたいな感じでぐぐってみるもなかなか対処方法にたどり着きませんでした。



そして、最終的にたどり着いた方法がこれ

  1. # initctl list  
  2. ...中略...  
  3. serial (ttyS0) start/running, process 2777  
  4. # initctl status serial DEV=ttyS0  
  5. serial (ttyS0) start/running, process 2777  
  6. # initctl restart serial DEV=ttyS0  
  7. serial (ttyS0) start/running, process 27704  
  8. # lsof|grep del  

agettyが再起動され、deleted状態から抜け出しましたヽ(´ー`)/

0 件のコメント:

コメントを投稿