Return-Path: X-Original-To: apmail-argus-commits-archive@minotaur.apache.org Delivered-To: apmail-argus-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 62BED17847 for ; Fri, 31 Oct 2014 21:04:02 +0000 (UTC) Received: (qmail 92145 invoked by uid 500); 31 Oct 2014 21:04:02 -0000 Delivered-To: apmail-argus-commits-archive@argus.apache.org Received: (qmail 92095 invoked by uid 500); 31 Oct 2014 21:04:02 -0000 Mailing-List: contact commits-help@argus.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@argus.incubator.apache.org Delivered-To: mailing list commits@argus.incubator.apache.org Received: (qmail 92066 invoked by uid 99); 31 Oct 2014 21:04:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Oct 2014 21:04:02 +0000 X-ASF-Spam-Status: No, hits=-2000.6 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 31 Oct 2014 21:04:00 +0000 Received: (qmail 91763 invoked by uid 99); 31 Oct 2014 21:03:40 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Oct 2014 21:03:40 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id CAF5992A07C; Fri, 31 Oct 2014 21:03:39 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sneethir@apache.org To: commits@argus.incubator.apache.org Date: Fri, 31 Oct 2014 21:03:49 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [11/15] git commit: Updated path to usersync startup script X-Virus-Checked: Checked by ClamAV on apache.org Updated path to usersync startup script Project: http://git-wip-us.apache.org/repos/asf/incubator-argus/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-argus/commit/d0509b63 Tree: http://git-wip-us.apache.org/repos/asf/incubator-argus/tree/d0509b63 Diff: http://git-wip-us.apache.org/repos/asf/incubator-argus/diff/d0509b63 Branch: refs/heads/master Commit: d0509b63d2f513702bdef8bc9f0aa81ae39f6497 Parents: 6c12754 Author: Don Bosco Durai Authored: Thu Oct 30 00:11:32 2014 -0700 Committer: mneethiraj Committed: Thu Oct 30 00:26:32 2014 -0700 ---------------------------------------------------------------------- unixauthservice/scripts/initd | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/d0509b63/unixauthservice/scripts/initd ---------------------------------------------------------------------- diff --git a/unixauthservice/scripts/initd b/unixauthservice/scripts/initd index 7b0564c..b50bdd6 100644 --- a/unixauthservice/scripts/initd +++ b/unixauthservice/scripts/initd @@ -14,23 +14,17 @@ # See the License for the specific language governing permissions and # limitations under the License. -INSTALL_BASE=/usr/bin +START_SCRIPT=/usr/bin/ranger-usersync-start +STOP_SCRIPT=/usr/bin/ranger-usersync-stop -MOD_NAME=ranger-usersync - -MOD_DIR=${INSTALL_BASE}/${MOD_NAME} - -if [ -L ${MOD_DIR} ] -then - case $1 in +case $1 in start) - cd ${MOD_DIR} ; ./start.sh + ${START_SCRIPT} ;; stop) - cd ${MOD_DIR} ; ./stop.sh + ${STOP_SCRIPT} ;; *) echo "Invalid argument [$1]; Only start|stop are supported." exit 1 esac -fi