Ubic::Run - really simple way to write init scripts
# in your init script: use Ubic::Run; # that's all!
This module allows to represent any ubic service as an init script.
It resolves service name automatically by looking at process
Currently, it supports systems where init script is located at
/etc/init.d/ (LSB-compatible systems as specified by http://refspecs.freestandards.org/LSB_4.0.0/LSB-Core-generic/LSB-Core-generic/initsrcinstrm.html, for example, Debian and Ubuntu) and systems where this directory is called
/etc/rc.d/init.d/ (for example, RedHat).
*nix distributions can use different places for init scripts. If your system doesn't conform to cases listed in description, this module will have to be patched.
Note that you usually don't want to use SysV-style rcX.d runlevel symlinks, because Ubic remembers if service should be running by other means (by storing status files in
/var/lib/ubic/status/), ubic-watchdog brings all enabled services up in one minute after reboot, and usually it's all you need anyway. If this bothers you, please remind me about it - I know a way to fix it (by adding additional abstraction layer which stores statuses), but I don't think I'll do this before anyone will actually care.
Vyacheslav Matyukhin <firstname.lastname@example.org>
This software is copyright (c) 2012 by Yandex LLC.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.