Giter VIP home page Giter VIP logo

daemon-rs's Introduction

daemon-rs's People

Contributors

bozaro avatar peterw-lwl avatar retep998 avatar slonopotamus avatar tshepang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

daemon-rs's Issues

edited: Example locks daemon wrapper and service_handler never called

Able to get a service installed and started with your example but does not react to stop or restart. I'm wondering if something like StartServiceCtrlDispatcherW is failing, and we're falling through to daemon_console from daemon_service? Any ideas, or anyone solved this?

I first realized the daemon.name has to match the service name exactly for the lookup to work, but fixing that did not fix this.

After testing determined what is failing when trying to run example; the DaemonWrapper executes daemon.holder.exec().unwrap(); in service_main, which calls Receiver.iter in a blocking loop. service_main thus never returns and service_handler can never receive invocation by system to handle stop or shutdown control signals.

To get this working, executing the daemon.holder.exec function in a new thread. When service_handler receives SERVICE_STOP_PENDING control message it gives the receiver some time to clean up and stop, and then sets the status to SERVICE_STOPPED. Is there a better way to do this?

Add example(s)

This is the first crate that popped up when I searched 'daemon' on crates.io. After pulling up the docs, I have no idea of how to use this crate. Considering that this is a desireable crate name, please, please, add documentation or transfer ownership of the crate to someone else who has more time to spend on it.

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.