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 E5C3A200C04 for ; Tue, 10 Jan 2017 07:13:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E46A9160B4C; Tue, 10 Jan 2017 06:13:04 +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 96EA5160B49 for ; Tue, 10 Jan 2017 07:13:03 +0100 (CET) Received: (qmail 26420 invoked by uid 500); 10 Jan 2017 06:13:01 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 26410 invoked by uid 99); 10 Jan 2017 06:13:01 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jan 2017 06:13:01 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 5C5C61A0111 for ; Tue, 10 Jan 2017 06:13:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.781 X-Spam-Level: * X-Spam-Status: No, score=1.781 tagged_above=-999 required=6.31 tests=[HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id TjCkke1SAWal for ; Tue, 10 Jan 2017 06:12:57 +0000 (UTC) Received: from mail-qt0-f174.google.com (mail-qt0-f174.google.com [209.85.216.174]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 1AFAB5F4AC for ; Tue, 10 Jan 2017 06:12:57 +0000 (UTC) Received: by mail-qt0-f174.google.com with SMTP id x49so90821656qtc.2 for ; Mon, 09 Jan 2017 22:12:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=gw1/ZmdXGTzQBoqJgzw/A3pshYL0aP+mAuaGsoCG5LI=; b=XVnIl2IwWudAKaxvvTWuzgeuviQW92YRBZM1ZCooUgsADtMRphVV4ePJxq/Y5ec1yT Ren2B+4l6ln34o5HoB46F6LBhTKfY2ox6J23FfFEwW8zR9Xrb1WZN1ZfgQUsZLdlxVK3 i1A+hsic5PEXngHBEbm4sdEb8owMJk9fX8i3UJdA0gaOCS8Yj3i8hW/sXrRbB4q8ZHyt 0eqQYPJbpifSp60XgUWLbUr3Zw9BCEpyTshuSrr5az0394KsjgyrB4Hr/lyxqrl4j2X6 lvNTVtnOZ2oXJamQYyTwtiWOWwK24uvCHlVPmvva30ZY3A6Far3FkWu8jt/cAzihK8Wu ax3A== X-Gm-Message-State: AIkVDXJPKvrbFQp4AnvN0E+ZbJmarQeRShdtxyew+9C/i+kr7TpERIquTLG/JMa0kWzOrXwknzOlsoTqcHw/rg== X-Received: by 10.200.51.26 with SMTP id t26mr1398406qta.106.1484028775252; Mon, 09 Jan 2017 22:12:55 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Jonathan Haddad Date: Tue, 10 Jan 2017 06:12:44 +0000 Message-ID: Subject: Re: Strange issue wherein cassandra not being started from cron To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=001a113701e4fc4af20545b75f81 archived-at: Tue, 10 Jan 2017 06:13:05 -0000 --001a113701e4fc4af20545b75f81 Content-Type: text/plain; charset=UTF-8 Last I checked, cron doesn't load the same, full environment you see when you log in. Also, why put Cassandra on a cron? On Mon, Jan 9, 2017 at 9:47 PM Bhuvan Rawal wrote: > Hi Ajay, > > Have you had a look at cron logs? - mine is in path /var/log/cron > > Thanks & Regards, > > On Tue, Jan 10, 2017 at 9:45 AM, Ajay Garg wrote: > > Hi All. > > Facing a very weird issue, wherein the command > > */etc/init.d/cassandra start* > > causes cassandra to start when the command is run from command-line. > > > However, if I put the above as a cron job > > > > ** * * * * /etc/init.d/cassandra start* > cassandra never starts. > > > I have checked, and "cron" service is running. > > > Any ideas what might be wrong? > I am pasting the cassandra script for brevity. > > > Thanks and Regards, > Ajay > > > > #################################################################################################### > #! /bin/sh > ### BEGIN INIT INFO > # Provides: cassandra > # Required-Start: $remote_fs $network $named $time > # Required-Stop: $remote_fs $network $named $time > # Should-Start: ntp mdadm > # Should-Stop: ntp mdadm > # Default-Start: 2 3 4 5 > # Default-Stop: 0 1 6 > # Short-Description: distributed storage system for structured data > # Description: Cassandra is a distributed (peer-to-peer) system for > # the management and storage of structured data. > ### END INIT INFO > > # Author: Eric Evans > > DESC="Cassandra" > NAME=cassandra > PIDFILE=/var/run/$NAME/$NAME.pid > SCRIPTNAME=/etc/init.d/$NAME > CONFDIR=/etc/cassandra > WAIT_FOR_START=10 > CASSANDRA_HOME=/usr/share/cassandra > FD_LIMIT=100000 > > [ -e /usr/share/cassandra/apache-cassandra.jar ] || exit 0 > [ -e /etc/cassandra/cassandra.yaml ] || exit 0 > [ -e /etc/cassandra/cassandra-env.sh ] || exit 0 > > # Read configuration variable file if it is present > [ -r /etc/default/$NAME ] && . /etc/default/$NAME > > # Read Cassandra environment file. > . /etc/cassandra/cassandra-env.sh > > if [ -z "$JVM_OPTS" ]; then > echo "Initialization failed; \$JVM_OPTS not set!" >&2 > exit 3 > fi > > export JVM_OPTS > > # Export JAVA_HOME, if set. > [ -n "$JAVA_HOME" ] && export JAVA_HOME > > # Load the VERBOSE setting and other rcS variables > . /lib/init/vars.sh > > # Define LSB log_* functions. > # Depend on lsb-base (>= 3.0-6) to ensure that this file is present. > . /lib/lsb/init-functions > > # > # Function that returns 0 if process is running, or nonzero if not. > # > # The nonzero value is 3 if the process is simply not running, and 1 if the > # process is not running but the pidfile exists (to match the exit codes > for > # the "status" command; see LSB core spec 3.1, section 20.2) > # > CMD_PATT="cassandra.+CassandraDaemon" > is_running() > { > if [ -f $PIDFILE ]; then > pid=`cat $PIDFILE` > grep -Eq "$CMD_PATT" "/proc/$pid/cmdline" 2>/dev/null && return 0 > return 1 > fi > return 3 > } > # > # Function that starts the daemon/service > # > do_start() > { > # Return > # 0 if daemon has been started > # 1 if daemon was already running > # 2 if daemon could not be started > > ulimit -l unlimited > ulimit -n "$FD_LIMIT" > > cassandra_home=`getent passwd cassandra | awk -F ':' '{ print $6; }'` > heap_dump_f="$cassandra_home/java_`date +%s`.hprof" > error_log_f="$cassandra_home/hs_err_`date +%s`.log" > > [ -e `dirname "$PIDFILE"` ] || \ > install -d -ocassandra -gcassandra -m755 `dirname $PIDFILE` > > > > start-stop-daemon -S -c cassandra -a /usr/sbin/cassandra -q -p > "$PIDFILE" -t >/dev/null || return 1 > > start-stop-daemon -S -c cassandra -a /usr/sbin/cassandra -b -p > "$PIDFILE" -- \ > -p "$PIDFILE" -H "$heap_dump_f" -E "$error_log_f" >/dev/null || > return 2 > > } > > # > # Function that stops the daemon/service > # > do_stop() > { > # Return > # 0 if daemon has been stopped > # 1 if daemon was already stopped > # 2 if daemon could not be stopped > # other if a failure occurred > start-stop-daemon -K -p "$PIDFILE" -R TERM/30/KILL/5 >/dev/null > RET=$? > rm -f "$PIDFILE" > return $RET > } > > case "$1" in > start) > [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" > do_start > case "$?" in > 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; > 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; > esac > ;; > stop) > [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" > do_stop > case "$?" in > 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; > 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; > esac > ;; > restart|force-reload) > log_daemon_msg "Restarting $DESC" "$NAME" > do_stop > case "$?" in > 0|1) > do_start > case "$?" in > 0|1) > do_start > case "$?" in > 0) log_end_msg 0 ;; > 1) log_end_msg 1 ;; # Old process is still running > *) log_end_msg 1 ;; # Failed to start > esac > ;; > *) > # Failed to stop > log_end_msg 1 > ;; > esac > ;; > status) > is_running > stat=$? > case "$stat" in > 0) log_success_msg "$DESC is running" ;; > 1) log_failure_msg "could not access pidfile for $DESC" ;; > *) log_success_msg "$DESC is not running" ;; > esac > exit "$stat" > ;; > *) > echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload|status}" > >&2 > exit 3 > ;; > esac > > : > > # vi:ai sw=4 ts=4 tw=0 et > > #################################################################################################### > > > -- > Regards, > Ajay > > > --001a113701e4fc4af20545b75f81 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Last I checked, cron doesn't load the same, full environment you see wh= en you log in. Also, why put Cassandra on a cron?
On Mon, Jan 9, 2017 at 9:47 PM Bhuvan Rawal <bhu1rawal@gmail.com> wrote:
Hi A= jay,

Have you had a look at cron logs? - mine is in path /var/log/cron<= /div>

Thanks & Regards,

On Tue, Jan 10, 2017 at 9:45 AM, Ajay Garg <ajaygargnsit@gmail.com> wrote:
Hi All.
Facing a very weird issu= e, wherein the command

/etc/init.d/cassandra start

causes cassandra to start when the comman= d is run from command-line.

=
However, if I put the above as a cron job

* * * * = * /etc/init.d/cassandra start

cassandra never starts.


I have checked, and "cron" = service is running.


Any ideas what might be wrong?
I am pasting the cassandra script for brevity.


Thanks and Regards,=
Ajay


###################= ###########################################################################= ######
#! /bin/sh
### BEGIN I= NIT INFO
# Provides:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 cassandra
# Required-Start:= =C2=A0=C2=A0=C2=A0 $remote_fs $network $named $time
= # Required-Stop:=C2=A0=C2=A0=C2=A0=C2=A0 $remote_fs $network $named $time# Should-Start:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ntp mda= dm
# Should-Stop:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 ntp mdadm
# Default-Start:=C2=A0=C2=A0=C2=A0=C2= =A0 2 3 4 5
# Default-Stop:=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 0 1 6
# Short-Description: distributed storag= e system for structured data
# Description:=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 Cassandra is a distributed (peer-to-peer) syste= m for
#=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 the m= anagement and storage of structured data.
### END IN= IT INFO

# Author: Eric Evans= <eevans@racklabs.com>

DESC=3D"Cassandra"
NAME=3Dcassandra=
PIDFILE=3D/var/run/$NAME/$NAME.pid
SCRIPTNAME=3D/etc/init.d/$NAME
CONFDIR=3D/etc= /cassandra
WAIT_FOR_START=3D10
CASSANDRA_HOME=3D/usr/share/cassandra
FD_LIMIT=3D1= 00000

[ -e /usr/share/cassan= dra/apache-cassandra.jar ] || exit 0
[ -e /etc/cassa= ndra/cassandra.yaml ] || exit 0
[ -e /etc/cassandra/= cassandra-env.sh ] || exit 0

# Read configuration variable file if it is present
[ -r /etc/default/$NAME ] && . /etc/default/$NAME

# Read Cassandra environment file.
. /etc/cassandra/cassandra-env.sh
if [ -z "$JVM_OPTS" ]; then
=C2=A0=C2=A0=C2=A0 echo "Initialization failed; \$JVM_OPTS not = set!" >&2
=C2=A0=C2=A0=C2=A0 exit 3
fi

export= JVM_OPTS

# Export JAVA_HOME= , if set.
[ -n "$JAVA_HOME" ] && e= xport JAVA_HOME

# Load the V= ERBOSE setting and other rcS variables
. /lib/init/v= ars.sh

# Define LSB log_* fu= nctions.
# Depend on lsb-base (>=3D 3.0-6) to ens= ure that this file is present.
. /lib/lsb/init-funct= ions

#
# Function that returns 0 if process is running, or nonzero if not.
#
# The nonzero value is 3 if the = process is simply not running, and 1 if the
# proces= s is not running but the pidfile exists (to match the exit codes for
# the "status" command; see LSB core spec 3.1, s= ection 20.2)
#
CMD_PATT=3D&qu= ot;cassandra.+CassandraDaemon"
is_running()
{
=C2=A0=C2=A0=C2=A0 if [ -f $PI= DFILE ]; then
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 pid=3D`cat $PIDFILE`
=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 grep -Eq "$CMD_PATT" "/proc/$pid/cmdline&= quot; 2>/dev/null && return 0
=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 return 1
=C2=A0=C2= =A0=C2=A0 fi
=C2=A0=C2=A0=C2=A0 return 3
}
#
# Function th= at starts the daemon/service
#
do_start()
{
=C2=A0=C2=A0= =C2=A0 # Return
=C2=A0=C2=A0=C2=A0 #=C2=A0=C2=A0 0 i= f daemon has been started
=C2=A0=C2=A0=C2=A0 #=C2=A0= =C2=A0 1 if daemon was already running
=C2=A0=C2=A0= =C2=A0 #=C2=A0=C2=A0 2 if daemon could not be started

=C2=A0=C2=A0=C2=A0 ulimit -l unlimited
=C2=A0=C2=A0=C2=A0 ulimit -n "$FD_LIMIT"

=C2=A0=C2=A0=C2=A0 cassandra_home=3D= `getent passwd cassandra | awk -F ':' '{ print $6; }'`
=C2=A0=C2=A0=C2=A0 heap_dump_f=3D"$cassandra_home/j= ava_`date +%s`.hprof"
=C2=A0=C2=A0=C2=A0 error_= log_f=3D"$cassandra_home/hs_err_`date +%s`.log"

=C2=A0=C2=A0=C2=A0 [ -e `dirname "$PIDFI= LE"` ] || \
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 install -d -ocassandra -gcassandra -m755 `dirname $PIDFILE`



=C2=A0=C2=A0=C2=A0 start-stop-daemon -S -c cassandra -a /usr= /sbin/cassandra -q -p "$PIDFILE" -t >/dev/null || return 1

=C2=A0=C2=A0=C2=A0 start-stop-d= aemon -S -c cassandra -a /usr/sbin/cassandra -b -p "$PIDFILE" -- = \
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 -p &quo= t;$PIDFILE" -H "$heap_dump_f" -E "$error_log_f" &g= t;/dev/null || return 2

}
#
# Fun= ction that stops the daemon/service
#
do_stop()
{
=C2=A0= =C2=A0=C2=A0 # Return
=C2=A0=C2=A0=C2=A0 #=C2=A0=C2= =A0 0 if daemon has been stopped
=C2=A0=C2=A0=C2=A0 = #=C2=A0=C2=A0 1 if daemon was already stopped
=C2=A0= =C2=A0=C2=A0 #=C2=A0=C2=A0 2 if daemon could not be stopped
=C2=A0=C2=A0=C2=A0 #=C2=A0=C2=A0 other if a failure occurred
=C2=A0=C2=A0=C2=A0 start-stop-daemon -K -p "$PIDFILE&= quot; -R TERM/30/KILL/5 >/dev/null
=C2=A0=C2=A0= =C2=A0 RET=3D$?
=C2=A0=C2=A0=C2=A0 rm -f "$PIDF= ILE"
=C2=A0=C2=A0=C2=A0 return $RET
}

case "$1&= quot; in
=C2=A0 start)
=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [ "$VERBOSE" !=3D no ] &= & log_daemon_msg "Starting $DESC" "$NAME"
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 do_start
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 case "$?&quo= t; in
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0|1) [ "$VERBOSE" != =3D no ] && log_end_msg 0 ;;
=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= 2) [ "$VERBOSE" !=3D no ] && log_end_msg 1 ;;
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 esac
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ;;
=C2=A0 stop)
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 [ "$VERBOSE" !=3D no ] && log_daemon_msg "= Stopping $DESC" "$NAME"
=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 do_stop
=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 case "$?" in
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 0|1) [ "$VERBOSE" !=3D no ] && log_end= _msg 0 ;;
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 2) [ "$VERBOSE" = !=3D no ] && log_end_msg 1 ;;
=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 esac
=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 ;;
=C2=A0 restart|force-= reload)
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 l= og_daemon_msg "Restarting $DESC" "$NAME"
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 do_stop
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 case "$?" in=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 0|1)
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 do_start
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 case "$?" in
=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0|1)
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 do_start
=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 case &qu= ot;$?" in
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 0) log_end_msg 0 ;;
=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 1) log_end_msg= 1 ;; # Old process is still running
=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 *) log_end_msg 1 ;; # Fail= ed to start
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 esac
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 ;;
=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 *)
=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 # Fai= led to stop
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 log_end_msg 1
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ;;
=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 esac
=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 ;;
=C2=A0 status)
=C2=A0=C2=A0=C2=A0 is_running
=C2=A0=C2= =A0=C2=A0 stat=3D$?
=C2=A0=C2=A0=C2=A0 case "$s= tat" in
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0) log_s= uccess_msg "$DESC is running" ;;
=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 1) log_failure_msg "could not access pidfile for= $DESC" ;;
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 *) lo= g_success_msg "$DESC is not running" ;;
= =C2=A0=C2=A0=C2=A0 esac
=C2=A0=C2=A0=C2=A0 exit &quo= t;$stat"
=C2=A0=C2=A0=C2=A0 ;;
=C2=A0 *)
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload|st= atus}" >&2
=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 exit 3
=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 ;;
esac

:

# vi:ai= sw=3D4 ts=3D4 tw=3D0 et
###########################= #########################################################################


--
Regards,
Ajay
<= /div>

--001a113701e4fc4af20545b75f81--