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

not working on linux (raspberry pi) with nohup #6

Open
aster94 opened this issue Apr 9, 2020 · 2 comments
Open

not working on linux (raspberry pi) with nohup #6

aster94 opened this issue Apr 9, 2020 · 2 comments

Comments

@aster94
Copy link

aster94 commented Apr 9, 2020

Hello,

I tried on raspberry pi 3B+ and it didn't work. Even if I can see the process the pid file is not created. Could the problem be created by the nohup command?

@mosquito
Copy link
Owner

Please add your code sample.

@vascobarbosa
Copy link

vascobarbosa commented Mar 25, 2023

try:
	with pidfile.PIDFile("/tmp/doors.pid"):
		logging.info("Started")
except pidfile.AlreadyRunningError:
	logging.info("Already Running")
	sys.exit(0)

this doesnt work

edit: Sorry my bad., this works
all the code have to be after this :
with pidfile.PIDFile("/tmp/doors.pid"):

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

3 participants