[Linux] needrestart

91Savage·2022년 10월 27일
0

Server

목록 보기
2/24

Ubuntu 22.04 LTS 버전은 apt install or update package 를 실행할 때
needrestart 팝업화면과 함께 화면이 뜬다

처음 뜨는 화면이라 어떤 설정을 해야할 지 모른다. 자동으로 재시작을 진행해주면서 이전 버전에서 나오지 않았던 낯선화면을 제거 할수 있다.

/etc/needrestart/needrestart.conf

#$nrconf{restart} = 'i';

를 주석을 제거해준 후 아래처럼 변경해준다.

$nrconf{restart} = 'a';
(if we want to restart the services automatically)

or

$nrconf{restart} = 'l'
(to simply list the services that need restart).

팝업이 뜨지 않고 자동으로 재시작 해주길 원했기 때문에 "a" 로 설정

0개의 댓글