[Lugge] Re: avvio e script

  • From: Andrea De Gaetano <dega1999@xxxxxxxxx>
  • To: lugge@xxxxxxxxxxxxx
  • Date: Fri, 11 Jun 2004 10:16:06 +0200 (CEST)

Questo esempio di script me lo salvo ;)
ciauz
> #!/bin/bash
> #
> # (c) 2004, Rroberto A. Foglietta
> #     Released under GPL v2.0 terms
> #
> # Source function library.
> 
> #questa riga è utile in MDK in SuSE non so se serva
> . /etc/rc.d/init.d/functions
> 
>                 case "$1" in
>                 stop)
>                         #esegui il tuo stop script
>                         if [ $? == 0 ]
>                         then
>                                 echo_success
>                         else
>                                 echo_failure
>                         fi
>                         echo
>                        ;;
>                 start)
>                         #esegui il tuo start script
>                         if [ $? == 0 ]
>                         then
>                                 echo_success
>                         else
>                                 echo_failure
>                         fi
>                         echo
>                         ;;
>                 *)
>                         gprintf "Usage: %s
> {start|stop}\n" "$0"
>                         exit 1
>                 esac
>         done
> fi
> 
> 

=====
____
|Andrea De Gaetano
| http://dega1999.altervista.org/j2me/  Midlet per cellulari
------


        

        
                
____________________________________________________________
Yahoo! Companion - Scarica gratis la toolbar di Ricerca di Yahoo! 
http://companion.yahoo.it
========---------- 
  
 Prima di scrivere in m-list per favore leggi il regolamento 
 http://www.lugge.net/soci/index.php?link=manifesto
 
 Archivio delle e-mail postate in lista 
 //www.freelists.org/archives/lugge/ 
 
 Modifica dell'account sulla lista LUGGe 
 http://www.lugge.net/soci/index.php?link=manifesto.htm#list
 
  

Other related posts: