R
R
Rrooom2014-08-20 10:28:34
linux
Rrooom, 2014-08-20 10:28:34

How to daemonize a python script?

Lots of stuff, but nothing is clear.
There is a script. Which must be alive forever. How to rewrite it and what else needs to be done so that
- after a reboot it starts
- if it suddenly dies - the traceback is written to the log, and the script itself is started again
- so that it can be started and stopped manually through the "service" (for ubuntu)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Disassociative, 2014-08-20
@Rrooom

Use supervisord , no need to rewrite anything

B
brutal_lobster, 2014-08-21
@brutal_lobster

upstart.ubuntu.com

Q
QuakeMan, 2014-08-22
@QuakeMan

example
https://www.linux.org.ru/forum/desktop/8957738?las...
description .. sloppy but some information is
linuxoso.org/tag/init-d
the example was generally enough for me

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question