diff --git a/lib/protobuf/rpc/service_directory.rb b/lib/protobuf/rpc/service_directory.rb
index <HASH>..<HASH> 100644
--- a/lib/protobuf/rpc/service_directory.rb
+++ b/lib/protobuf/rpc/service_directory.rb
@@ -123,6 +123,11 @@ module Protobuf
         end
       end
 
+      def restart
+        stop
+        start
+      end
+
       def running?
         !!@thread.try(:alive?)
       end
Add a restart method to the service directory

This is useful for apps running unicorn. Call restart in the after_fork
callback.