Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 30D2D200B44 for ; Wed, 29 Jun 2016 20:39:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2F7A0160A3C; Wed, 29 Jun 2016 18:39:10 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 773A8160A6E for ; Wed, 29 Jun 2016 20:39:09 +0200 (CEST) Received: (qmail 44101 invoked by uid 500); 29 Jun 2016 18:39:06 -0000 Mailing-List: contact commits-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@ambari.apache.org Delivered-To: mailing list commits@ambari.apache.org Received: (qmail 44010 invoked by uid 99); 29 Jun 2016 18:39:06 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Jun 2016 18:39:06 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 8AF6BE5CE1; Wed, 29 Jun 2016 18:39:06 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: stoader@apache.org To: commits@ambari.apache.org Message-Id: <2d8e610dd8084671874f98936d01209d@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: ambari git commit: AMBARI-17419. Disabling the auto-start for ambari-server and ambari-agent doesn't work on systemd. (stoader) Date: Wed, 29 Jun 2016 18:39:06 +0000 (UTC) archived-at: Wed, 29 Jun 2016 18:39:10 -0000 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 Authored: Wed Jun 29 11:37:00 2016 -0700 Committer: Toader, Sebastian 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}"