[copr] skvidal-backend: trying to figure out why the daemonized process dies (7ae63a9)

skvidal at fedorahosted.org skvidal at fedorahosted.org
Wed Dec 5 21:19:37 UTC 2012


Repository : http://git.fedorahosted.org/cgit/copr.git

On branch  : skvidal-backend

>---------------------------------------------------------------

commit 7ae63a9178245688bb23ac7168fbe5546918187b
Author: Seth Vidal <skvidal at fedoraproject.org>
Date:   Wed Dec 5 16:17:31 2012 -0500

    trying to figure out why the daemonized process dies


>---------------------------------------------------------------

 copr-be.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/copr-be.py b/copr-be.py
index 5b35905..9a5e3a4 100644
--- a/copr-be.py
+++ b/copr-be.py
@@ -204,9 +204,9 @@ def main(args):
     opts = parse_args(args)
     
     try:
-        cbe = CoprBackend(opts.config_file, ext_opts=opts)
         if opts.daemonize:
             daemonize(opts.pidfile)
+        cbe = CoprBackend(opts.config_file, ext_opts=opts)
         cbe.run()
     except Exception, e:
         print 'Killing/Dying'



More information about the copr-devel mailing list