문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
|
linux:systemd [2022/10/11 09:50] kwon37xi [user 시작 프로그램] |
linux:systemd [2025/07/14 16:10] (현재) kwon37xi [systemd] |
||
|---|---|---|---|
| 줄 4: | 줄 4: | ||
| * [[http:// | * [[http:// | ||
| * [[https:// | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| * [[linux: | * [[linux: | ||
| 줄 27: | 줄 29: | ||
| # booting 시 시작하게 하면서, 지금 당장도 실행하게 | # booting 시 시작하게 하면서, 지금 당장도 실행하게 | ||
| systemctl enable --now unit | systemctl enable --now unit | ||
| + | </ | ||
| + | |||
| + | ===== environment.d ===== | ||
| + | * 세션 시작시 환경 변수를 설정하기 | ||
| + | * script 는 안되고, '' | ||
| + | * [[https:// | ||
| + | * ''/ | ||
| + | * 스크립트를 넣을 수는 없다. | ||
| + | |||
| + | < | ||
| + | # 예시 / | ||
| + | |||
| + | FOO_DEBUG=force-software-gl, | ||
| + | PATH=/ | ||
| + | LD_LIBRARY_PATH=/ | ||
| + | XDG_DATA_DIRS=/ | ||
| </ | </ | ||
| 줄 33: | 줄 51: | ||
| * [[https:// | * [[https:// | ||
| * [[https:// | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| ===== systemd bootchart ===== | ===== systemd bootchart ===== | ||
| * [[http:// | * [[http:// | ||
| 줄 44: | 줄 63: | ||
| * [[linux: | * [[linux: | ||
| * [[https:// | * [[https:// | ||
| + | |||
| + | ===== Shutdown 이 너무 느릴 때 ===== | ||
| + | * '' | ||
| + | ==== 분석 ==== | ||
| + | * '' | ||
| + | |||
| + | <code sh> | ||
| + | sudo journalctl -b -1 > log | ||
| + | </ | ||
| + | * 위 '' | ||
| + | |||
| + | ==== 일괄로 종료 Timeout 지정 ==== | ||
| + | * 분석이 힘들거나 할 경우 다음과 같이 일괄 타임아웃을 지정할 수도 있다. | ||
| + | * ''/ | ||
| + | DefaultTimeoutStopSec=10s # 원래 90s 임. | ||
| + | </ | ||
| + | * 재시작 <code sh> | ||
| + | sudo systemctl daemon-reexec | ||
| + | |||
| + | </ | ||
| ===== systemd 는 어떻게 기존 SysVInit 의 / | ===== systemd 는 어떻게 기존 SysVInit 의 / | ||