Hola colegas: estoy haciendo un script de solo de arranque para un servicio que quiero se ejecute en segundo plano, el script me funciona pero el servicio no se ejecuta en segundo plano, aqui les pego el script
#! /bin/sh PATH=/sbin:/usr/sbin:/bin:/usr/bin: DESC="Servicio" ARGS="-b" NAME=prueba DAEMON=/usr/bin/prueba/$NAME PIDFILE=/var/run/$NAME.pid SCRIPTNAME=/etc/init.d/prueba # Exit if the package is not installed [ -x "$DAEMON" ] || exit 0 # Load the VERBOSE setting and other rcS variables . /lib/init/vars.sh # Define LSB log_* functions. # Depend on lsb-base (>= 3.2-14) to ensure that this file is present # and status_of_proc is working. . /lib/lsb/init-functions # # Function that starts the daemon/service # do_start() { echo -n "Iniciando servicio prueba" start-stop-daemon -S -m -p $PIDFILE -a $DAEMON -x $DAEMON -- $ARGS } 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 ;; esac : Saludos y gracias de antemano ***************************************************************** Lic. Roilan Martínez Acebal Esp. Principal Joven Club Cumanayagua 1, Cienfuegos E_mail: roilan.marti...@cfg.jovenclub.cu Jabber ID: roilan.marti...@jabber.cfg.jovenclub.cu WebSite: https://cumay1.cfg.jovenclub.cu Teléfonos: Trabajo (+53) (043) 43-3309, Mobile +53 53-594776 root@servidor:~# ______________________________________________________________________ Lista de correos del Grupo de Usuarios de Tecnologías Libres de Cuba. Gutl-l@jovenclub.cu https://listas.jovenclub.cu/cgi-bin/mailman/listinfo/gutl-l