Repository: ambari
Updated Branches:
  refs/heads/branch-2.4 50c297ba5 -> 3097e0525


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


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/3097e052
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/3097e052
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/3097e052

Branch: refs/heads/branch-2.4
Commit: 3097e052548289ceb50e53120a4b47c50b7a20a4
Parents: 50c297b
Author: Toader, Sebastian <stoa...@hortonworks.com>
Authored: Wed Jun 29 11:37:00 2016 -0700
Committer: Toader, Sebastian <stoa...@hortonworks.com>
Committed: Wed Jun 29 11:38:10 2016 -0700

----------------------------------------------------------------------
 ambari-agent/etc/init.d/ambari-agent | 8 ++++++++
 ambari-server/sbin/ambari-server     | 8 ++++++++
 2 files changed, 16 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/3097e052/ambari-agent/etc/init.d/ambari-agent
----------------------------------------------------------------------
diff --git a/ambari-agent/etc/init.d/ambari-agent 
b/ambari-agent/etc/init.d/ambari-agent
index b2c3109..2d597a9 100644
--- a/ambari-agent/etc/init.d/ambari-agent
+++ b/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

http://git-wip-us.apache.org/repos/asf/ambari/blob/3097e052/ambari-server/sbin/ambari-server
----------------------------------------------------------------------
diff --git a/ambari-server/sbin/ambari-server b/ambari-server/sbin/ambari-server
index 29af308..81cf53b 100755
--- a/ambari-server/sbin/ambari-server
+++ b/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}"

Reply via email to