
Debian Stretch 시스템에서 systemd는 로케일( dpkg-reconfigure locales
및 사용법 )을 재구성할 localectl
때 부팅 설정으로 계속 실행됩니다 . 따라서 시작된 서비스는 systemctl
이전(시작 시) 로케일을 계속 사용합니다.
나도 systemctl daemon-reload
그것을 시도했습니다 daemon-reexec
. 전혀 없습니다.
유닛 파일을 다시 시작하거나 수정하는 것 외에 다른 옵션이 있나요?
답변1
# systemctl show-environment
LANG=pl_PL.UTF-8
# systemctl set-environment LANG=en_US.UTF-8
# systemctl show-environment
LANG=en_US.UTF-8
이것은 systemd에 의해 실행되는 서비스에서도 작동하는 것 같습니다(분명히 다시 시작해야 합니다).