[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [NOVICE] Filserver - start og stop automatisk?



On Tue, 08 Apr 2008 15:13:43 +0200
Stig Mogensen <sslug@sslug> wrote:

> 
> Kan denne SME filserver sættes til at starte automatisk, når én eller
> begge klienter kører, og så lukke ned igen automatisk, når klienterne
> er slukket?.
> 
Hvis serveren fungerer som DHCP server, kan du jo scripte hændelsen,
når klienterne frigiver deres lease. Når serveren ikke har registreret
flere aktive leases, kan du jo kalde shutdown sekvensen.

En lease kan have følgende udseende (/var/lib/dhcp3/dhcpd.leases):
lease 192.168.2.74 {
  starts 2 2008/04/08 09:14:22;
  ends 3 2008/04/09 05:14:22;
  binding state active;
  next binding state free;
  hardware ethernet 00:19:d1:a1:94:61;
  set ddns-rev-name = "74.2.168.192.in-addr.arpa.";
  set ddns-txt = "0007c64f419fb84afa820a54fea541d9a2";
  set ddns-fwd-name = "sleipner.datanom.net";
  client-hostname "sleipner";
}

lease 192.168.2.73 {
  starts 1 2008/03/17 01:13:06;
  ends 1 2008/03/17 21:13:06;
  tstp 1 2008/03/17 21:13:06;
  binding state free;
  hardware ethernet 08:00:27:a8:ad:8c;
  uid "\001\010\000'\250\255\214";
}

Bemærk linjen binding state

-- 
Hilsen/Regards
Michael Rasmussen
http://keyserver.veridis.com:11371/pks/lookup?op=get&search=0xE3E80917
A computer is like air conditioning: it becomes useless when you open
windows.


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2008-05-01, 02:01 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *