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 6DC91200C04 for ; Tue, 10 Jan 2017 05:15:48 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 6C6DD160B49; Tue, 10 Jan 2017 04:15:48 +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 454DE160B3E for ; Tue, 10 Jan 2017 05:15:47 +0100 (CET) Received: (qmail 65727 invoked by uid 500); 10 Jan 2017 04:15:45 -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 65717 invoked by uid 99); 10 Jan 2017 04:15:45 -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 04:15:45 +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 C70B61A0320 for ; Tue, 10 Jan 2017 04:15:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.681 X-Spam-Level: * X-Spam-Status: No, score=1.681 tagged_above=-999 required=6.31 tests=[AC_DIV_BONANZA=0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, 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 Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com 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 ekz1sBVgU3ob for ; Tue, 10 Jan 2017 04:15:42 +0000 (UTC) Received: from mail-lf0-f54.google.com (mail-lf0-f54.google.com [209.85.215.54]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 994A05F4AC for ; Tue, 10 Jan 2017 04:15:41 +0000 (UTC) Received: by mail-lf0-f54.google.com with SMTP id v186so53373601lfa.1 for ; Mon, 09 Jan 2017 20:15:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=AqU/81nk+oYwx1RXQ3qb/NIvUsLxB4ze7RwCJ/Ow/UE=; b=ildx+7FU2DPklOKFyJS5M3uKd+PPFu8GITrKYJR1+XJN0jaBgqZ8SmJLazrnPpbwWV 2L6SI6ybsV3Mq44Hn5vjLakj36ANb5ak+otR70RUtk4dhEeJNCPi2ORWQIV7kMUql+5m qMVz2OGahmDKcHIl25dgtST0uP+br0Ygb/FjHvJv5yugztev9PBznBxT4bn3JoMYBY2c oxJAYVkd4qE2YWhv3Xrg0bvJyzaS05T/MxclaZo63RetqiocNpk7n7UzW1aouMcqHdN6 6JFhILe3uSch6Qa5XIoGLA1/CmkF/PYxPbEclfSINiQnhOEw7solDetqwYqPywPds7tX FsUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=AqU/81nk+oYwx1RXQ3qb/NIvUsLxB4ze7RwCJ/Ow/UE=; b=WqsViwvcvAd34qKtwHruS2VKbe8mcOqEdq4ohPYFTFL3O9Oq0+B9kj5BFsrSiuI538 dU9v+XR/ZfJ/9K9YR/EjwuVdPMXUmCH9ZIuz25WR4TrWbqxxNM4xItiSVHdPCRYglnSF G6ZFUpQunLjAlG+csfhM84/wxoPv93A+mddn2hf31BQMZb3tohpnBQkfm9K8TmAV35EI 7Nf3gp23tfj1HkkQlRRX3VQa5iudUP2kf7CmAcJyZoHuOVryKDvbZBbxXAsdjcwNtqDG vup3vBFgv8daP720L7fHuJGsIjE39L97Mz+tEz1AOYU1HaaRkm7tmSjpZIN4olJdXWfi ckJw== X-Gm-Message-State: AIkVDXKF6r1i19vDZRTo/TcBYUOB8HKeZslyIW23Y21NozwI9Y5z04FgLKp8tJ4VuTzMRIJqv3hFODn+qHwTfQ== X-Received: by 10.25.65.15 with SMTP id o15mr266939lfa.14.1484021734426; Mon, 09 Jan 2017 20:15:34 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.199.131 with HTTP; Mon, 9 Jan 2017 20:15:34 -0800 (PST) From: Ajay Garg Date: Tue, 10 Jan 2017 09:45:34 +0530 Message-ID: Subject: Strange issue wherein cassandra not being started from cron To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=001a113fb3f051f73d0545b5bcc5 archived-at: Tue, 10 Jan 2017 04:15:48 -0000 --001a113fb3f051f73d0545b5bcc5 Content-Type: text/plain; charset=UTF-8 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 --001a113fb3f051f73d0545b5bcc5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi All.<= br>
Facing a very weird issue, wherein the command

/etc/init.d/cassandra start

causes cassandra to start whe= n 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:=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 $netw= ork $named $time
# Required-Stop:=C2=A0=C2=A0=C2=A0=C2=A0 $remote_fs $ne= twork $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
# Def= ault-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 storage system= for structured data
# Description:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = Cassandra is a distributed (peer-to-peer) system 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 management and storage of structured data.
###= END INIT INFO

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

DESC=3D"Cassandra"<= br>NAME=3Dcassandra
PIDFILE=3D/var/run/$NAME/$NAME.pid
SCRIPTNAME=3D/= etc/init.d/$NAME
CONFDIR=3D/etc/cassandra
WAIT_FOR_START=3D10
CASS= ANDRA_HOME=3D/usr/share/cassandra
FD_LIMIT=3D100000

[ -e /usr/sha= re/cassandra/apache-cassandra.jar ] || exit 0
[ -e /etc/cassandra/cassan= dra.yaml ] || exit 0
[ -e /etc/cassandra/cassandra-env.sh ] || exit 0
# Read configuration variable file if it is present
[ -r /etc/defau= lt/$NAME ] && . /etc/default/$NAME

# Read Cassandra environm= ent file.
. /etc/cassandra/cassandra-env.sh

if [ -z "$JVM_OP= TS" ]; 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_HO= ME" ] && export JAVA_HOME

# Load the VERBOSE setting an= d other rcS variables
. /lib/init/vars.sh

# Define LSB log_* func= tions.
# Depend on lsb-base (>=3D 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 run= ning but the pidfile exists (to match the exit codes for
# the "sta= tus" command; see LSB core spec 3.1, section 20.2)
#
CMD_PATT=3D= "cassandra.+CassandraDaemon"
is_running()
{
=C2=A0=C2=A0= =C2=A0 if [ -f $PIDFILE ]; 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" 2>/dev/null &a= mp;& 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
}
#
# Functi= on that starts the daemon/service
#
do_start()
{
=C2=A0=C2=A0= =C2=A0 # Return
=C2=A0=C2=A0=C2=A0 #=C2=A0=C2=A0 0 if daemon has been st= arted
=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 &quo= t;$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/java_`date +%s`.hprof"
=C2= =A0=C2=A0=C2=A0 error_log_f=3D"$cassandra_home/hs_err_`date +%s`.log&q= uot;

=C2=A0=C2=A0=C2=A0 [ -e `dirname "$PIDFILE"` ] || \=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 install -d -ocassandra -gcassa= ndra -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-daemon -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 "$PIDFILE" -H "$h= eap_dump_f" -E "$error_log_f" >/dev/null || return 2
<= br>}

#
# Function 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 n= ot be stopped
=C2=A0=C2=A0=C2=A0 #=C2=A0=C2=A0 other if a failure occurr= ed
=C2=A0=C2=A0=C2=A0 start-stop-daemon -K -p "$PIDFILE" -R TE= RM/30/KILL/5 >/dev/null
=C2=A0=C2=A0=C2=A0 RET=3D$?
=C2=A0=C2=A0= =C2=A0 rm -f "$PIDFILE"
=C2=A0=C2=A0=C2=A0 return $RET
}
case "$1" 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= "$?" 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&quo= t; !=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&qu= ot; !=3D no ] && log_daemon_msg "Stopping $DESC" "$N= AME"
=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 log_daemon_msg "Restarting $DESC&quo= t; "$NAME"
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 do_stop<= br>=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 "$?" 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 proces= s 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 ;; # Failed 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<= br>=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 # Failed 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 e= sac
=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 "$stat" in
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0) lo= g_success_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 *) log_success_msg "$DESC is not ru= nning" ;;
=C2=A0=C2=A0=C2=A0 esac
=C2=A0=C2=A0=C2=A0 exit "= $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|for= ce-reload|status}" >&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
<= br>:

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

--
Regards,<= br>Ajay
--001a113fb3f051f73d0545b5bcc5--