Browse Source

AMBARI-17419. Disabling the auto-start for ambari-server and ambari-agent doesn't work on systemd. (stoader)

Toader, Sebastian 9 năm trước cách đây
mục cha
commit
3097e05254
2 tập tin đã thay đổi với 16 bổ sung0 xóa
  1. 8 0
      ambari-agent/etc/init.d/ambari-agent
  2. 8 0
      ambari-server/sbin/ambari-server

+ 8 - 0
ambari-agent/etc/init.d/ambari-agent

@@ -19,6 +19,14 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+### BEGIN INIT INFO
+# Provides:          ambari-agent
+# Required-Start:
+# Required-Stop:
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 6
+### END INIT INFO
+
 run_as_user=`cat /etc/ambari-agent/conf/ambari-agent.ini | grep run_as_user | tr -d ' ' | grep -v '^;\|^#' | awk -F '=' '{ print $2}'`
 
 if [ "$EUID" != `id -u $run_as_user` ] ; then

+ 8 - 0
ambari-server/sbin/ambari-server

@@ -19,6 +19,14 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+### BEGIN INIT INFO
+# Provides:          ambari-server
+# Required-Start:
+# Required-Stop:
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 6
+### END INIT INFO
+
 # /etc/init.d/ambari-server
 
 VERSION="${ambariFullVersion}"