Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having pid file would be nice. #16

Open
wilkart opened this issue Jul 14, 2013 · 2 comments
Open

Having pid file would be nice. #16

wilkart opened this issue Jul 14, 2013 · 2 comments

Comments

@wilkart
Copy link

wilkart commented Jul 14, 2013

         if(GitAutoDeploy.daemon):
             pid = os.fork()
             if(pid != 0):
+                with open('/var/run/GitAutoDeploy.pid', 'w') as f:
+                    f.write(str(pid))
+                    f.close()
                 sys.exit()
             os.setsid()
@rinetd
Copy link

rinetd commented Jul 29, 2016

how to work on windows?

@wilkart
Copy link
Author

wilkart commented Jul 30, 2016

good point, I have no experience with python on windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants