[Bps-public-commit] r16227 - in Pushmi/trunk: Pushmi-Admin/bin

alexmv at bestpractical.com alexmv at bestpractical.com
Mon Oct 6 16:47:48 EDT 2008


Author: alexmv
Date: Mon Oct  6 16:47:45 2008
New Revision: 16227

Added:
   Pushmi/trunk/Pushmi-Admin/bin/start-watchers   (contents, props changed)
   Pushmi/trunk/Pushmi-Admin/bin/stop-watchers   (contents, props changed)
Modified:
   Pushmi/trunk/   (props changed)

Log:
 r37987 at kohr-ah:  chmrr | 2008-10-06 16:39:18 -0400
  * Start and stop binaries for watchers


Added: Pushmi/trunk/Pushmi-Admin/bin/start-watchers
==============================================================================
--- (empty file)
+++ Pushmi/trunk/Pushmi-Admin/bin/start-watchers	Mon Oct  6 16:47:45 2008
@@ -0,0 +1,15 @@
+#!/usr/bin/perl
+
+use Jifty;
+
+use strict;
+use warnings;
+
+BEGIN { Jifty->new };
+
+my $replicas = Pushmi::Admin::Model::ReplicaCollection->new;
+$replicas->unlimit;
+while (my $r = $replicas->next) {
+    $r->start_watcher;
+}
+

Added: Pushmi/trunk/Pushmi-Admin/bin/stop-watchers
==============================================================================
--- (empty file)
+++ Pushmi/trunk/Pushmi-Admin/bin/stop-watchers	Mon Oct  6 16:47:45 2008
@@ -0,0 +1,15 @@
+#!/usr/bin/perl
+
+use Jifty;
+
+use strict;
+use warnings;
+
+BEGIN { Jifty->new };
+
+my $replicas = Pushmi::Admin::Model::ReplicaCollection->new;
+$replicas->unlimit;
+while (my $r = $replicas->next) {
+    $r->stop_watcher;
+}
+



More information about the Bps-public-commit mailing list