如何使用 systemctl 启用 ohasd.service

如何使用 systemctl 启用 ohasd.service

RHEL 7.1 和 Oracle 12c,我找不到问题所在?请解释。

[root@lrma086 grid]# systemctl enable ohasd.service
The unit files have no [Install] section. 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, ...).
[root@lrma086 grid]#  rpm -ql openssh-server | grep '\.service'
/usr/lib/systemd/system/sshd-keygen.service
/usr/lib/systemd/system/sshd.service
/usr/lib/systemd/system/[email protected]

答案1

你可以尝试添加

[安装]
WantedBy=多用户.target

在 ohasd.service 文件中,这将使服务在引导期间自动启动。

但是这个服务可能是作为另一个服务的依赖项启动的,因此安装部分被省略了?

相关内容