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

moves exit_UIP() from UIP.py to utils/utils.py #342

Merged
merged 1 commit into from
Jan 25, 2017

Conversation

SACHIN-13
Copy link
Contributor

fixes: #340

@abhay-raizada
Copy link
Member

Hi thank you for your Patch make sure you have the right commit structure that is

tag: Shortlog

body
Fixes <issue number/url>

Also please upload a screenshot if you have made changes to the gui.

"""Exit from UIP program."""
pid_file = os.path.join(HOME_DIR, 'daemon-uip.pid')
if os.path.exists(pid_file):
send(pid_file, SIGTERM)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to import send in this file

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also SIGTERM

@SACHIN-13 SACHIN-13 force-pushed the new-feature branch 2 times, most recently from 07181ca to 7bd9463 Compare January 25, 2017 14:04
@@ -3,12 +3,14 @@
import sys
import os

from daemoniker import Daemonizer, send, SIGTERM
from daemoniker import Daemonizer
from daemoniker import SIGTERM
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need for these here right?

@nkprince007
Copy link
Member

nkprince007 commented Jan 25, 2017

SIGSTOP could be used in conjunction, right?

@abhay-raizada
Copy link
Member

abhay-raizada commented Jan 25, 2017 via email

@nkprince007
Copy link
Member

nkprince007 commented Jan 25, 2017

I mean like, we could use SIGSTOP and resume later, right? Rather than killing it, IMO.

@abhay-raizada
Copy link
Member

abhay-raizada commented Jan 25, 2017 via email

@SACHIN-13 SACHIN-13 force-pushed the new-feature branch 2 times, most recently from c9896c3 to c2fd74d Compare January 25, 2017 16:55
@nkprince007
Copy link
Member

@SACHIN-13 Please amend your commit according to contribution guidelines.
Please add the issue reference
https://github.com/NIT-dgp/Guidelines/blob/master/CONTRIBUTING.md

@@ -3,12 +3,13 @@
import sys
import os

from daemoniker import Daemonizer, send, SIGTERM
from daemoniker import Daemonizer
from daemoniker import send
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still left :P

@SACHIN-13 SACHIN-13 force-pushed the new-feature branch 2 times, most recently from bb58a46 to 5e2073f Compare January 25, 2017 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move exit_UIP to utils.py
3 participants