ANN: dh, the daemon helper

Discussion in 'Python' started by John Kelly, Sep 10, 2009.

  1. John Kelly

    John Kelly Guest

    dh, the daemon helper

    The daemon helper starts any program or script as a daemon. It's a
    small C program with a simple interface and a liberal license.

    ftp://ftp.isp2dial.com/users/jak/src/dh/

    Get the files and do:

    make install clean

    To build and install dh. Don't try to run the Sh.install script
    directly, it must be invoked using the Makefile.

    I use dh for starting scripts which read fifos fed by syslog. They
    block on read until syslog provides data to work on. They never end,
    and need help to start as "daemons."

    But that's just one example. There are many other potential uses for
    the daemon helper.

    I use dh on Linux, but was curious about portability. With some minor
    changes, I compiled and installed it on NetBSD 5.0.1 x86. So now it's
    portable. Wheee!

    It's a cool tool, it reports problems encountered when trying to exec
    the target daemon program or script. Debian's start-stop-deamon can't
    do that, nor can any other daemon tool I know of.

    It's minimal, with only one command line option, -p. Avoiding unneeded
    bells and whistles was my intentional design.

    In six months time, I could lose interest in computers, start a new
    career, and the work would be lost forever. Someone who likes C more
    than I do should adopt dh and help it grow.

    But if you do, don't believe what Stevens wrote about ignoring SIGHUP
    before the second fork(). It's not true, so don't write voodoo code to
    handle it! See the thread in c.u.p with the subject "Orphaned process
    groups, daemon startup, SIGHUP."

    If you can't adopt dh, but have ideas for patches, send them. But if I
    don't respond, well then, you're on your own.

    There is no man page for dh, but the README explains how to use it.

    If there is enough interest, maybe someday I will give dh an official
    version number and use some version control. But for now, the date of
    last modification is all there is.

    dh is its name; a natural companion to sh.

    --
    Webmail for Dialup Users
    http://www.isp2dial.com/freeaccounts.html
    John Kelly, Sep 10, 2009
    #1
    1. Advertising

  2. John Kelly

    Guest

    John Kelly <> wrote:
    >
    > dh, the daemon helper


    ....
    > dh is its name; a natural companion to sh.
    >

    A useful little program, but...
    this might be OT, but let me point out that the name collides
    with Debian's debhelper (also invoked as dh)

    --
    -----------------------------------------------------------
    | Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
    | __..--^^^--..__ garabik @ kassiopeia.juls.savba.sk |
    -----------------------------------------------------------
    Antivirus alert: file .signature infected by signature virus.
    Hi! I'm a signature virus! Copy me into your signature file to help me spread!
    , Sep 10, 2009
    #2
    1. Advertising

  3. John Kelly

    John Kelly Guest

    On Thu, 10 Sep 2009 06:38:20 +0000 (UTC),
    wrote:

    >John Kelly <> wrote:


    >> dh, the daemon helper


    >> dh is its name; a natural companion to sh.


    >A useful little program, but...
    >this might be OT, but let me point out that the name collides
    >with Debian's debhelper (also invoked as dh)


    Until now, I was unaware of debhelper.

    It's hard to find a short name not already taken. I decided that dh was
    a good representation of its function, and I wanted a two character name
    that's easy to use with minimal keystrokes.

    I apologize to debhelper users, but I have no desire to change the name
    of daemon helper now.

    dh is its name; a natural companion to sh.


    --
    Webmail for Dialup Users
    http://www.isp2dial.com/freeaccounts.html
    John Kelly, Sep 10, 2009
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Re: dh, the daemon helper

    , Nov 2, 2008, in forum: C Programming
    Replies:
    5
    Views:
    307
    James Kuyper
    Nov 3, 2008
  2. John Kelly

    dh, the daemon helper

    John Kelly, Sep 5, 2009, in forum: C Programming
    Replies:
    45
    Views:
    1,236
    Dik T. Winter
    Oct 9, 2009
  3. John Kelly

    ANN: dh, the daemon helper 2009-09-12 11:11

    John Kelly, Sep 12, 2009, in forum: C Programming
    Replies:
    1
    Views:
    280
    Seebs
    Sep 12, 2009
  4. kevin
    Replies:
    1
    Views:
    359
    Kairi Zikpin
    Jul 21, 2006
  5. John Kelly
    Replies:
    0
    Views:
    115
    John Kelly
    Sep 10, 2009
Loading...

Share This Page