Ubic is a flexible perl-based service manager.
1 minute intro
Put this code in file
use Ubic::Service::SimpleDaemon; Ubic::Service::SimpleDaemon->new( bin => 'sleep 1000', );
$ ubic start example Starting example... started (pid 41209)
Check its status:
$ ubic status example running (pid 41209) ubic ubic.ping off ubic.update off ubic.watchdog running (pid 93226)
$ ubic status example example running (pid 41209)
Now let's see how watchdog works by killing the process (don't forget to change pid with the pid you got in status command above):
$ kill 41209 $ ubic status example example not running $ ubic-watchdog [Thu May 26 20:20:54 2011] example is broken, restarting
You don't have to run ubic-watchdog manually; it will do its work in background in a minute.
Run 'cpan -i Ubic && ubic-admin setup' to install Ubic.
We also provide .deb packages for Debian/Ubuntu. Latest .deb package can be downloaded from ppa:berekuk/ubic (see https://launchpad.net/~berekuk/+archive/ubic for details).
Debian package build can be reproduced with this command: dzil build && cd Ubic* && cp -r ../debian . && debuild
If you'll write ebuilds for Gentoo or specs for RPM-based systems, please contribute them back :)
After installing, you can find documentation for this module using perldoc and man commands.
man ubic perldoc Ubic
You can also look for information at:
Our IRC channel: irc://irc.perl.org#ubic.
There is also a low-volume mailing list is firstname.lastname@example.org. Send an empty message to to subscribe.
Copyright and licence
Copyright (c) 2009-2011 Yandex LTD. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
I don't actually need donations. I get paid at my $job for hacking on Ubic anyway. But I like Flattr's concept, so why not.
You can also +1 Ubic on MetaCPAN if you like it.