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=multi-user.target

ohasd.service ファイルでは、これによりブート時にサービスが自動的に開始されます。

ところで、このサービスが他のサービスの依存性から始まり、インストール部分が省略されたのではないでしょうか?

おすすめ記事