ubic_daemon - daemonize any binary
ubic-daemon --name=sleep 'sleep 1000' ubic-daemon --stop --name=sleep ubic-daemon --list
This program can be used to start any binary in the background.
Note that it doesn't create the proper service: binary won't be monitored by the watchdog and it won't be started on the system reboot. In other words, you usually will want to write the service config instead of using this program.
There is a similar program named
start-stop-daemon in Debian and some other Linux distributions which does daemonization and have some other powerful features.
Vyacheslav Matyukhin <firstname.lastname@example.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2013 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.