A と B の 2 つのサービスを追加しました。B は A に依存しており、B を開始する場合、A がまだ実行されていない場合は自動的に開始する必要があります。しかし、B を起動しているときに A が自動的に起動しません。
どこが間違っているのか教えてください。以下の両方のサービスの Init スクリプトについて説明しました。
B 初期化スクリプト:
#!/bin/bash
# Author: Jsingh <jsingh@sandvine.com>
# chkconfig: 2345 95 05
# processname: B
# config: /usr/local/etc/rc.conf
# pidfile: /var/run/B.pid
### BEGIN INIT INFO
# Provides: B
# Required-Start: $local_fs $network A
# Required-Stop: $local_fs $network A
# Should-Start:
# Should-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop System daemon
# Description:
### END INIT INFO
初期化スクリプト:
#!/bin/bash
# Author: Jsingh <jsingh@sandvine.com>
# chkconfig: 2345 90 10
# processname: A
# config: /usr/local/etc/rc.conf
# pidfile: /var/run/A.pid
### BEGIN INIT INFO
# Provides: A
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Should-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop System daemon
# Description:
### END INIT INFO