git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1231124 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Timothy A. Bish 2012-01-13 15:24:22 +00:00
parent 71e228fe92
commit 580635473d
3 changed files with 24 additions and 24 deletions

View File

@ -7,9 +7,9 @@
# The ASF licenses this file to You under the Apache License, Version 2.0 # The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with # (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at # the License. You may obtain a copy of the License at
# #
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0
# #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -50,7 +50,7 @@ PIDDIR="."
# The following two lines are used by the chkconfig command. Change as is # The following two lines are used by the chkconfig command. Change as is
# appropriate for your application. They should remain commented. # appropriate for your application. They should remain commented.
# chkconfig: 2345 20 80 # chkconfig: 2345 80 20
# description: @app.long.name@ # description: @app.long.name@
# Do not modify anything beyond this point # Do not modify anything beyond this point
@ -249,7 +249,7 @@ else
fi fi
fi fi
fi fi
# Build the nice clause # Build the nice clause
if [ "X$PRIORITY" = "X" ] if [ "X$PRIORITY" = "X" ]
then then
@ -292,7 +292,7 @@ checkUser() {
exit 1 exit 1
fi fi
fi fi
if [ "`$IDEXE -u -n`" = "$RUN_AS_USER" ] if [ "`$IDEXE -u -n`" = "$RUN_AS_USER" ]
then then
# Already running as the configured user. Avoid password prompts by not calling su. # Already running as the configured user. Avoid password prompts by not calling su.
@ -309,7 +309,7 @@ checkUser() {
then then
if [ "X$2" != "X" ] if [ "X$2" != "X" ]
then then
# Resolve the primary group # Resolve the primary group
RUN_AS_GROUP=`groups $RUN_AS_USER | awk '{print $3}' | tail -1` RUN_AS_GROUP=`groups $RUN_AS_USER | awk '{print $3}' | tail -1`
if [ "X$RUN_AS_GROUP" = "X" ] if [ "X$RUN_AS_GROUP" = "X" ]
then then
@ -393,7 +393,7 @@ console() {
exit 1 exit 1
fi fi
} }
start() { start() {
echo "Starting $APP_LONG_NAME..." echo "Starting $APP_LONG_NAME..."
getpid getpid
@ -406,7 +406,7 @@ start() {
exit 1 exit 1
fi fi
} }
stopit() { stopit() {
echo "Stopping $APP_LONG_NAME..." echo "Stopping $APP_LONG_NAME..."
getpid getpid

View File

@ -7,9 +7,9 @@
# The ASF licenses this file to You under the Apache License, Version 2.0 # The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with # (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at # the License. You may obtain a copy of the License at
# #
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0
# #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -50,7 +50,7 @@ PIDDIR="."
# The following two lines are used by the chkconfig command. Change as is # The following two lines are used by the chkconfig command. Change as is
# appropriate for your application. They should remain commented. # appropriate for your application. They should remain commented.
# chkconfig: 2345 20 80 # chkconfig: 2345 80 20
# description: @app.long.name@ # description: @app.long.name@
# Do not modify anything beyond this point # Do not modify anything beyond this point
@ -249,7 +249,7 @@ else
fi fi
fi fi
fi fi
# Build the nice clause # Build the nice clause
if [ "X$PRIORITY" = "X" ] if [ "X$PRIORITY" = "X" ]
then then
@ -292,7 +292,7 @@ checkUser() {
exit 1 exit 1
fi fi
fi fi
if [ "`$IDEXE -u -n`" = "$RUN_AS_USER" ] if [ "`$IDEXE -u -n`" = "$RUN_AS_USER" ]
then then
# Already running as the configured user. Avoid password prompts by not calling su. # Already running as the configured user. Avoid password prompts by not calling su.
@ -309,7 +309,7 @@ checkUser() {
then then
if [ "X$2" != "X" ] if [ "X$2" != "X" ]
then then
# Resolve the primary group # Resolve the primary group
RUN_AS_GROUP=`groups $RUN_AS_USER | awk '{print $3}' | tail -1` RUN_AS_GROUP=`groups $RUN_AS_USER | awk '{print $3}' | tail -1`
if [ "X$RUN_AS_GROUP" = "X" ] if [ "X$RUN_AS_GROUP" = "X" ]
then then
@ -393,7 +393,7 @@ console() {
exit 1 exit 1
fi fi
} }
start() { start() {
echo "Starting $APP_LONG_NAME..." echo "Starting $APP_LONG_NAME..."
getpid getpid
@ -406,7 +406,7 @@ start() {
exit 1 exit 1
fi fi
} }
stopit() { stopit() {
echo "Stopping $APP_LONG_NAME..." echo "Stopping $APP_LONG_NAME..."
getpid getpid

View File

@ -7,9 +7,9 @@
# The ASF licenses this file to You under the Apache License, Version 2.0 # The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with # (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at # the License. You may obtain a copy of the License at
# #
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0
# #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -49,7 +49,7 @@ PIDDIR="."
# The following two lines are used by the chkconfig command. Change as is # The following two lines are used by the chkconfig command. Change as is
# appropriate for your application. They should remain commented. # appropriate for your application. They should remain commented.
# chkconfig: 2345 20 80 # chkconfig: 2345 80 20
# description: @app.long.name@ # description: @app.long.name@
# Do not modify anything beyond this point # Do not modify anything beyond this point
@ -243,7 +243,7 @@ else
fi fi
fi fi
fi fi
# Build the nice clause # Build the nice clause
if [ "X$PRIORITY" = "X" ] if [ "X$PRIORITY" = "X" ]
then then
@ -286,7 +286,7 @@ checkUser() {
exit 1 exit 1
fi fi
fi fi
if [ "`$IDEXE -u -n`" = "$RUN_AS_USER" ] if [ "`$IDEXE -u -n`" = "$RUN_AS_USER" ]
then then
# Already running as the configured user. Avoid password prompts by not calling su. # Already running as the configured user. Avoid password prompts by not calling su.
@ -303,7 +303,7 @@ checkUser() {
then then
if [ "X$2" != "X" ] if [ "X$2" != "X" ]
then then
# Resolve the primary group # Resolve the primary group
RUN_AS_GROUP=`groups $RUN_AS_USER | awk '{print $3}' | tail -1` RUN_AS_GROUP=`groups $RUN_AS_USER | awk '{print $3}' | tail -1`
if [ "X$RUN_AS_GROUP" = "X" ] if [ "X$RUN_AS_GROUP" = "X" ]
then then
@ -387,7 +387,7 @@ console() {
exit 1 exit 1
fi fi
} }
start() { start() {
echo "Starting $APP_LONG_NAME..." echo "Starting $APP_LONG_NAME..."
getpid getpid
@ -400,7 +400,7 @@ start() {
exit 1 exit 1
fi fi
} }
stopit() { stopit() {
echo "Stopping $APP_LONG_NAME..." echo "Stopping $APP_LONG_NAME..."
getpid getpid