Salve a tutti. Ho la necessità di lanciare un mio programmino scritto in C all'avvio di Debian.
lo script che ho scritto è il seguente
codice:
#! /bin/sh

### BEGIN INIT INFO
# Provides:          My application instance
# Required-Start:  $all
# Required-Stop:     
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: starts instance 
# Description:       starts instance of my Application
### END INIT INFO

# script name
NAME="PIPPO"

# app name
DESC="PIPPO Software"



case "$1" in
  start)
 	 echo -n "Starting PIPPO"
        ## Start daemon with startproc(8). If this fails
        ## the return value is set appropriately by startproc.
        /var/www/mioSito/PIPPO/main
        ;;
  stop)
	echo -n "Stopping Arsenio "
        ;;
  restrt)
        ## Stop the service and regardless of whether it was
        ## running or not, start it again.
        $0 stop
        $0 start
	 ;;	
  *)
        echo "Usage: /etc/init.d/pippo.sh {start|stop}"
        exit 1
	;;
esac

exit 0
Successivamente assegno i permessi con chmod e con updare-rc.d inserisco i collegamenti sotto le varie cartelle. Avvio il sistema...e NULLA....dove sbaglio??