You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by ma...@apache.org on 2014/10/30 08:26:46 UTC

git commit: Updated path to usersync startup script

Repository: incubator-argus
Updated Branches:
  refs/heads/argus2ranger 6c127542c -> d0509b63d


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/argus2ranger
Commit: d0509b63d2f513702bdef8bc9f0aa81ae39f6497
Parents: 6c12754
Author: Don Bosco Durai <bo...@apache.org>
Authored: Thu Oct 30 00:11:32 2014 -0700
Committer: mneethiraj <mn...@hortonworks.com>
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