ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mad...@apache.org
Subject git commit: Updated path to usersync startup script
Date Thu, 30 Oct 2014 07:26:46 GMT
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 <bosco@apache.org>
Authored: Thu Oct 30 00:11:32 2014 -0700
Committer: mneethiraj <mneethiraj@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


Mime
View raw message