CentOS 8 / RHEL(RedHat) 8 이상 버전에서
rc-local.service가 정상적으로 enable 되지 않는 경우가 있다.
원인은 여러가지가 있을 수 있으나 필자는 rc-local.service 를 enable 시키는 과정에서 해당 오류가 발생했다.
systemctl enable rc-local.service
===============================================================================
The unit files have no installation config (WantedBy, RequiredBy, Also, Alias
settings in the [Install] section, and DefaultInstance for template units).
This means they are not meant to be enabled using systemctl.
Possible reasons for having this kind of units are:
1) A unit may be statically enabled by being symlinked from another unit's
.wants/ or .requires/ directory.
2) A unit's purpose may be to act as a helper for some other unit which has
a requirement dependency on it.
3) A unit may be started when needed via activation (socket, path, timer,
D-Bus, udev, scripted systemctl call, ...).
4) In case of template units, the unit is meant to be enabled with some
instance name specified.
===============================================================================
해당 건은
/usr/lib/systemd/system/rc-local.service 에서 [Install] 부분이 빠져있어 의존성검사에서 오류가 발생한것으로
[Install]
WantedBy=multi-user.target
마지막부분에 추가해주면 해결된다.
반응형
'문제해결' 카테고리의 다른 글
USB가 갑자기 인식되지 않음 (0) | 2020.10.20 |
---|---|
CentOS7 네트워크 설정 후 connect: Network is unreachable (1) | 2020.10.20 |