el codigo del script es el siguiente:
#! /bin/sh
### BEGIN INIT INFO
# Provides: aplicacion
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Description: start,restart,stop aplicacion
### END INIT INFO
# PATH should only include /usr/* if it runs after the mountnfs.sh script
#PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="Aplicacion Web"
NAME="aplicacion"
DAEMON="/etc/init.d/aplicacion"
PIDFILE="/var/run/${NAME}.pid"
DAEMON_OPTS="start stop restart"
QUIET="--quiet"
START_OPTS="--start ${QUIET} --background --make-pidfile --pidfile ${PIDFILE} --exec ${DAEMON} ${DAEMON_OPTS}"
STOP_OPTS="--stop ${QUIET} --retry=TERM/30/KILL/5 --pidfile ${PIDFILE}"
LOGDIR="/var/log/${NAME}.log"
#test -x $DAEMON || exit 0
set -e
case "$1" in
start)
echo -n "Starting $DESC: "
start-stop-daemon $START_OPTS
echo "$NAME"
;;
stop)
echo -n "Stopping $DESC: "
start-stop-daemon $STOP_OPTS
echo "$NAME"
rm $PIDFILE
;;
restart)
echo -n "Restarting $DESC: "
start-stop-daemon $STOP_OPTS
sleep 1
start-stop-daemon $START_OPTS
echo "$NAME"
;;
*)
N=/etc/init.d/$NAME
echo "USAGE: $N {start|stop|restart}">&2
exit 1
;;
esac
exit 0
el proceso corre en
root 2119
y al momento que quiero detenerlo aparece este error:
Stopping Aplicacion Web: start-stop-daemon: warning: failed to kill 2118: No such process
con un numero anterior