You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by st...@apache.org on 2016/06/29 18:37:17 UTC

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

Repository: ambari
Updated Branches:
  refs/heads/trunk 15d7e2035 -> b39ba60a5


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/b39ba60a
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/b39ba60a
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/b39ba60a

Branch: refs/heads/trunk
Commit: b39ba60a5e4fd0e772e2015553ba993d1f21d180
Parents: 15d7e20
Author: Toader, Sebastian <st...@hortonworks.com>
Authored: Wed Jun 29 11:37:00 2016 -0700
Committer: Toader, Sebastian <st...@hortonworks.com>
Committed: Wed Jun 29 11:37:00 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/b39ba60a/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/b39ba60a/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}"