Coder Social home page Coder Social logo

Comments (5)

rawsonj avatar rawsonj commented on August 12, 2024

http://web.archive.org/web/20131017130434/http://www.jejik.com/articles/2007/02/a_simple_unix_linux_daemon_in_python/

Shows a python daemon implementation.

Alternatively, we could just write a bash wrapper that does the needful, but I'm less inclined to do that than something in python I think.

from triviabot.

andy5995 avatar andy5995 commented on August 12, 2024

I'd say that if it can be done in python, then there's no real reason to have a separate BASH script.

With one exception: my initial thoughts are that a BASH script could still be included to give the user the option to integrate it into their init scripts. But the primary daemonization would be coded into the .py file.

And for the record, I'm much better with BASH than python, atm. ;) That's something I'd be able to work on.

from triviabot.

rawsonj avatar rawsonj commented on August 12, 2024

I'm just weighing the relative complexity of incorporating the above linked daemon code vs. just writing a bash wrapper that goes nohup python trivia.py &

The latter is a lot less code and very easy to maintain. The former... well I'm not sure yet. I think it depends on how much time either of us want to put into it.

from triviabot.

andy5995 avatar andy5995 commented on August 12, 2024

I'm leaning toward option 1.

If there's some reason more complex needs to be added in the future, or until users start giving us reason why a native daemon method would be better, I think the bash wrapper is the way to go.

from triviabot.

rawsonj avatar rawsonj commented on August 12, 2024

Ok. I'll add something.

from triviabot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.