RHEL7 で起動時に RHDS10 サービスを有効または無効にする
Issue
-
RHDS9/RHEL6 では、以下のように、chkconfig を使用して、起動時に Directory Servers を有効または無効にしていました。
chkconfig dirsrv on chkconfig dirsrv off chkconfig --list | grep dirsrv
-
RHDS10/RHEL7 で同じように設定するにはどうすれば良いですか? Init が systemd に替わりました。
systemctl disable dirsrv@<instance>
を実行するとインスタンスを無効にすることができますが、systemctl enable dirsrv@<instance>
を実行すると、以下のようなメッセージが表示されます。このメッセージは何を示していますか?# systemctl enable dirsrv@<instance> 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, ...).
Environment
- Red Hat Directory Server (RHDS) 10
- Red Hat Enterprice Linux (RHEL) 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.