Coder Social home page Coder Social logo

harshit-sharma-gits / restartdaemon Goto Github PK

View Code? Open in Web Editor NEW

This project forked from haikuarchives/restartdaemon

0.0 0.0 0.0 140 KB

Allows application developers to restart their applications with a minimal amount of effort if an application is running.

Home Page: http://dev.osdrawer.net/projects/restartdaemon

C++ 48.22% Perl 3.24% Objective-C 3.26% Racket 45.27%

restartdaemon's Introduction

Restart Daemon Version 0.10
============================
This program is a simple to use daemon or server that will restart an application upon
request. It's primary purpose is to allow an application to restart itself at some point,
for instance after performing an upgrade. It should be simple to use:

Define these two values in your application:

#define RD_RESTART_APP 'rdra'
#define RD_APP_RESTARTED 'rdar'

Alternatively, you may copy the #defines from the source/rdapp.h file.

Send a BMessage to a running instance of the "restart_daemon" (even if you have to launch
it before restarting) with the RD_RESTART_APP value as the what value and containing these
fields:

"be:signature" or "rd:app_sig": A string containing the application's signature
"rd:app_name": (Optional) The name of the application.
"rd:ref": (Optional if the signature is passed) An entry_ref to the executable.
"rd:start_message": (Optional) One or more messages your application is to receive at start-up.
"rd:restart_time": (Optional) Don't restart the application before this time. (Should be calculated based on real_time_clock().)

As long as the restart_daemon is still running, the next time your application shutsdown,
the restart_daemon will start the application again.

Although this is still listed as an alpha, it is held back from being an official 1.0 release only because I feel there are more features that could be implemented to make this a much more useful application to the average end-user. Hopefully, new features will be added by the community now that this application has been donated to BeUnited.

Please let me know what you think of it!

Raymond C. Rodgers
[email protected]

restartdaemon's People

Contributors

waddlesplash avatar

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.