Re: Can carp(4) run daemons or scripts?

2011-08-24 Thread Vincent Hoffman
On 24/08/2011 05:39, Pavel Timofeev wrote:
 Big thanks! I'll stop on carp and devd!
 I think such example (from your link) must be in handbook. Because it's good
 native solution from base system.
 Or at least link from carp section to devd section.
 Who do I need to write with this idea?

Too late :)
I should have looked here first but i just did a quick Google.
http://www.freebsd.org/doc/handbook/disks-hast.html

You could suggest on
freebsd-dochttp://docs.freebsd.org/mail/archive/freebsd-doc.html@ to
have a  link from the carp section though.

Vince

 2011/8/23 Vincent Hoffman vi...@unsane.co.uk

 On 23/08/2011 17:21, Pavel Timofeev wrote:
 Oh, thank you very much!
 I didn't know about ifstated. I'll try it.

 Also may be with devd
 How? What do you mean?
 devd is the freebsd device state change daemon, it will track device
 state changes and you can tell it to act on them.
 A quick google for devd and carp gives
 http://blather.michaelwlucas.com/archives/224
 which looks like it covers the kind of thing you want.

 Vince

 2011/8/23 Patrick Lamaiziere patf...@davenulle.org

 Le Tue, 23 Aug 2011 17:50:43 +0400,
 Pavel Timofeev tim...@gmail.com a écrit :

 Hello,

 Can carp(4) run daemons or scripts when backup server come into the
 work? As I know ucarp and heartbeat can do this.
 No, carp only works at the interface level. In ports you will find
 ifstated(8) (from OpenBSD). It can react to a change on an
 interface and run tests.

 Also may be with devd, but imo ifstated will do the trick.

 Regards.

 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org


 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Can carp(4) run daemons or scripts?

2011-08-23 Thread Pavel Timofeev
Can carp(4) run daemons or scripts when backup server come into the work?
As I know ucarp and heartbeat can do this.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Can carp(4) run daemons or scripts?

2011-08-23 Thread Patrick Lamaiziere
Le Tue, 23 Aug 2011 17:50:43 +0400,
Pavel Timofeev tim...@gmail.com a écrit :

Hello,

 Can carp(4) run daemons or scripts when backup server come into the
 work? As I know ucarp and heartbeat can do this.

No, carp only works at the interface level. In ports you will find
ifstated(8) (from OpenBSD). It can react to a change on an
interface and run tests.

Also may be with devd, but imo ifstated will do the trick.

Regards.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Can carp(4) run daemons or scripts?

2011-08-23 Thread Pavel Timofeev
Oh, thank you very much!
I didn't know about ifstated. I'll try it.

 Also may be with devd
How? What do you mean?

2011/8/23 Patrick Lamaiziere patf...@davenulle.org

 Le Tue, 23 Aug 2011 17:50:43 +0400,
 Pavel Timofeev tim...@gmail.com a écrit :

 Hello,

  Can carp(4) run daemons or scripts when backup server come into the
  work? As I know ucarp and heartbeat can do this.

 No, carp only works at the interface level. In ports you will find
 ifstated(8) (from OpenBSD). It can react to a change on an
 interface and run tests.

 Also may be with devd, but imo ifstated will do the trick.

 Regards.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Can carp(4) run daemons or scripts?

2011-08-23 Thread Vincent Hoffman
On 23/08/2011 17:21, Pavel Timofeev wrote:
 Oh, thank you very much!
 I didn't know about ifstated. I'll try it.

 Also may be with devd
 How? What do you mean?
devd is the freebsd device state change daemon, it will track device
state changes and you can tell it to act on them.
A quick google for devd and carp gives
http://blather.michaelwlucas.com/archives/224
which looks like it covers the kind of thing you want.

Vince


 2011/8/23 Patrick Lamaiziere patf...@davenulle.org

 Le Tue, 23 Aug 2011 17:50:43 +0400,
 Pavel Timofeev tim...@gmail.com a écrit :

 Hello,

 Can carp(4) run daemons or scripts when backup server come into the
 work? As I know ucarp and heartbeat can do this.
 No, carp only works at the interface level. In ports you will find
 ifstated(8) (from OpenBSD). It can react to a change on an
 interface and run tests.

 Also may be with devd, but imo ifstated will do the trick.

 Regards.

 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Can carp(4) run daemons or scripts?

2011-08-23 Thread Pavel Timofeev
Big thanks! I'll stop on carp and devd!
I think such example (from your link) must be in handbook. Because it's good
native solution from base system.
Or at least link from carp section to devd section.
Who do I need to write with this idea?

2011/8/23 Vincent Hoffman vi...@unsane.co.uk

 On 23/08/2011 17:21, Pavel Timofeev wrote:
  Oh, thank you very much!
  I didn't know about ifstated. I'll try it.
 
  Also may be with devd
  How? What do you mean?
 devd is the freebsd device state change daemon, it will track device
 state changes and you can tell it to act on them.
 A quick google for devd and carp gives
 http://blather.michaelwlucas.com/archives/224
 which looks like it covers the kind of thing you want.

 Vince

 
  2011/8/23 Patrick Lamaiziere patf...@davenulle.org
 
  Le Tue, 23 Aug 2011 17:50:43 +0400,
  Pavel Timofeev tim...@gmail.com a écrit :
 
  Hello,
 
  Can carp(4) run daemons or scripts when backup server come into the
  work? As I know ucarp and heartbeat can do this.
  No, carp only works at the interface level. In ports you will find
  ifstated(8) (from OpenBSD). It can react to a change on an
  interface and run tests.
 
  Also may be with devd, but imo ifstated will do the trick.
 
  Regards.
 
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org