---
 ryu/cmd/manager.py |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/ryu/cmd/manager.py b/ryu/cmd/manager.py
index 4710547..cdcc7ae 100755
--- a/ryu/cmd/manager.py
+++ b/ryu/cmd/manager.py
@@ -48,7 +48,8 @@ CONF.register_cli_opts([
     cfg.ListOpt('app-lists', default=[],
                 help='application module name to run'),
     cfg.MultiStrOpt('app', positional=True, default=[],
-                    help='application module name to run')
+                    help='application module name to run'),
+    cfg.StrOpt('pid-file', default=None, help='pid file name'),
 ])


@@ -63,6 +64,11 @@ def main(args=None, prog=None):

     log.init_log()

+    if CONF.pid_file:
+        import os
+        with open(CONF.pid_file, 'w') as pid_file:
+            pid_file.write(str(os.getpid()))
+
     app_lists = CONF.app_lists + CONF.app
     # keep old behaivor, run ofp if no application is specified.
     if not app_lists:
-- 
1.7.9.5




------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to