[LUGOS] lsb init

Martin martin at amadej.si
Sat Dec 6 18:57:14 CET 2003


O.K.
Sem ze resu.
Kljucno je blo source pogledat od njegove skripte in ugotovit tole:
--
  case `$spath $arg status` in
    *[Rr]unning*|*OK*)  return 0;;
    *)                  return 3;;
  esac
}
--


On Saturday 06 of December 2003 18:48, Martin wrote:
> Tezave mi dela lsb init  skripta, ki jo hoce heartbeat v tem standardu.
> Relevanten del je tu:
> --
> inet_status(){
>
> V=`$IP a l | $GREP $IP | $WC -l`
>  if [ "$V" -eq 0 ]; then
> $ECHO "Not running!"
>   return 3;
>   exit 3;
>  fi
>
>  if [ "$V" -gt 0 ]; then
> $ECHO "Running OK"
>   return 0;
>   exit 0;
>  fi
>
> }
>
>
> case "$1" in
> 'start')
>   inet_start
>   ;;
> 'stop')
>   inet_stop
>   ;;
> 'status')
>   inet_status
>   ;;
> *)
>   inet_start
>   ;;
> esac
> --
>
> Ne vem zdj, kaj hoče heartbeat da bo vedu status, ker ne poznam tega lsb
> standarda dovolj.
> To prijave heartbeat ob zagonu:
> --
> 2003/12/06_19:51:52 CRITICAL: Resource inet3 is active, and should not be!
> 2003/12/06_19:51:52 CRITICAL: Non-idle resources can affect data integrity!
> 2003/12/06_19:51:52 info: If you don't know what this means, then get help!
> 2003/12/06_19:51:52 info: Read the docs and/or source to
> /usr/local/lib/heartbeat/ResourceManager for more details.
> CRITICAL: Resource inet3 is active, and should not be!
> CRITICAL: Non-idle resources can affect data integrity!
> info: If you don't know what this means, then get help!
> info: Read the docs and/or the source to
> /usr/local/lib/heartbeat/ResourceManager for more details.
> 2003/12/06_19:51:52 CRITICAL: Non-idle resources will affect resource
> takeback!
> 2003/12/06_19:51:52 CRITICAL: Non-idle resources may affect data integrity!
> Done.
> --
>
> Pa servis itaq ni aktiven:
> --
> ./inet3 status
> Not running!
> --
>
> Kaj točno naj še dam v skripto, da bom zadovoljil heartbeatove potrebe in
> bo pravilno zaznal.
>
> Hvala za predloge.
> Martin




More information about the lugos-list mailing list