Hola a todos y gracias por sus sugerencias!!!
El que me funciono a la final (sin errollarme con el pid) fue el
killall (thanks mario!)..
Mi script final fue el siguiente, saludos a todos!!
#! /bin/sh
#
# Script para Arranque del ESoundServer
# Autor: AleXerTecH
Script=/etc/init.d/esdserv.sh
#
# Iniciar el ESD como Daemon
#
d_start() {
esd &
}
#
#Detener el Demonio
#
d_stop() {
killall esd
}
case "$1" in
start)
echo "ESounD Server Iniciado... "
d_start
;;
stop)
echo "ESounD Server Terminado... "
d_stop
;;
esac
exit 0
--
----------------------------------------------------------------
! ..::'''AleXerTecH'''::.. ! !
-----------------------------------------------------------------
( o < -! Debian Sarge _ kernel:2.6.8-2-K7
/ /\
V_/_ Usuario linux registrado #383172
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]