{"id":20434398,"url":"https://github.com/centralnicgroup-opensource/daemonise","last_synced_at":"2025-12-12T02:43:57.249Z","repository":{"id":792311,"uuid":"490200","full_name":"centralnicgroup-opensource/Daemonise","owner":"centralnicgroup-opensource","description":"Daemonise - a general daemoniser for anything...","archived":false,"fork":false,"pushed_at":"2023-01-20T11:34:39.000Z","size":954,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-12T21:11:57.671Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://metacpan.org/release/Daemonise/","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/centralnicgroup-opensource.png","metadata":{"files":{"readme":"README.pod","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-01-27T02:21:51.000Z","updated_at":"2025-02-27T09:25:27.000Z","dependencies_parsed_at":"2023-02-12T01:40:13.876Z","dependency_job_id":null,"html_url":"https://github.com/centralnicgroup-opensource/Daemonise","commit_stats":null,"previous_names":[],"tags_count":122,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/centralnicgroup-opensource%2FDaemonise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/centralnicgroup-opensource%2FDaemonise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/centralnicgroup-opensource%2FDaemonise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/centralnicgroup-opensource%2FDaemonise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/centralnicgroup-opensource","download_url":"https://codeload.github.com/centralnicgroup-opensource/Daemonise/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248631681,"owners_count":21136562,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T08:26:28.107Z","updated_at":"2025-12-12T02:43:57.195Z","avatar_url":"https://github.com/centralnicgroup-opensource.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"=pod\n\n=encoding UTF-8\n\n=head1 NAME\n\nDaemonise - Daemonise - a general daemoniser for anything...\n\n=head1 VERSION\n\nversion 2.14\n\n=head1 SYNOPSIS\n\n    use Daemonise;\n    use File::Basename;\n\n    my $d = Daemonise-\u003enew();\n    $d-\u003ename(basename($0));\n\n    # log/print more debug info\n    $d-\u003edebug(1);\n\n    # stay in foreground, don't actually fork when calling $d-\u003estart\n    $d-\u003eforeground(1) if $d-\u003edebug;\n\n    # config file style can be whatever Config::Any supports\n    $d-\u003econfig_file('/path/to/some.conf');\n\n    # where to store/look for PID file\n    $d-\u003epid_file(\"/var/run/${name}.pid\");\n\n    # configure everything so far\n    $d-\u003econfigure;\n\n    # fork and redirect STDERR/STDOUT to syslog per default\n    $d-\u003estart;\n\n    # load some plugins (refer to plugin documentation for provided methods)\n    $d-\u003eload_plugin('RabbitMQ');\n    $d-\u003eload_plugin('CouchDB');\n    $d-\u003eload_plugin('JobQueue');\n    $d-\u003eload_plugin('Event');\n    $d-\u003eload_plugin('Redis');\n    $d-\u003eload_plugin('HipChat');\n    $d-\u003eload_plugin('Riemann');\n    $d-\u003eload_plugin('PagerDuty');\n    $d-\u003eload_plugin('KyotoTycoon');\n    $d-\u003eload_plugin('Graphite');\n\n    # reconfigure after loading plugins if necessary\n    $d-\u003econfigure;\n\n    # do stuff\n\n=head1 ATTRIBUTES\n\n=head2 name\n\n=head2 hostname\n\n=head2 config_file\n\n=head2 config\n\n=head2 debug\n\n=head2 start_time\n\n=head2 is_cron\n\n=head2 cache_plugin\n\n=head2 print_log\n\n=head1 SUBROUTINES/METHODS\n\n=head2 new\n\n=head2 load_plugin\n\n=head2 configure\n\n=head2 async\n\n=head2 log\n\n=head2 notify\n\nThis is a stub that can be extended by plugins like HipChat and Slack\n\n=head2 start\n\nstub method to hook into by plugins\n\n=head2 stop\n\n=head2 round\n\n=head2 dump\n\n=head2 stdout_redirect\n\nmethod hook for redirecting STDOUT/STDERR in plugins\nmost recent loaded plugin takes precedence using C\u003caround\u003e modifier only\n\n=head2 build_hostname\n\n=head1 DEPLOY PROCESS\n\nThis module uses Dist::Zilla for the release process. To get it up and running\ndo the following:\n\n    cpanm Dist::Zilla\n    git clone https://github.com/ideegeo/Daemonise\n    cd Daemonise\n    dzil authordeps --missing | cpanm\n    dzil listdeps --author --develop | cpanm\n\nAt this point all required plugins for Dist::Zilla and modules to run tests\nshould be installed. Daemonise uses PGP signed github releases, so make sure your\ngit config user and email are setup correctly as well as a PGP key that matches\nyour git(hub) account email. Try Config::Identity for a PGP encrypted file of\nyour github account credentials in ~/.github for convenience.\nFinally run:\n\n    dzil release\n\nwhich will do all the work (build, test, sign, tag, update github, upload).\n\n=head1 BUGS\n\nPlease report any bugs or feature requests on GitHub's issue tracker L\u003chttps://github.com/ideegeo/Daemonise/issues\u003e.\n\n=head1 SUPPORT\n\nYou can find documentation for this module with the perldoc command.\n\n    perldoc Daemonise\n\nYou can also look for information at:\n\n=over 4\n\n=item * GitHub repository\n\nL\u003chttps://github.com/ideegeo/Daemonise\u003e\n\n=item * AnnoCPAN: Annotated CPAN documentation\n\nL\u003chttp://annocpan.org/dist/Daemonise\u003e\n\n=item * CPAN Ratings\n\nL\u003chttp://cpanratings.perl.org/d/Daemonise\u003e\n\n=back\n\n=head1 ACKNOWLEDGEMENTS\n\n=head1 AUTHOR\n\nLenz Gschwendtner \u003cnorbu09@cpan.org\u003e\n\n=head1 COPYRIGHT AND LICENSE\n\nThis software is copyright (c) 2013 by Lenz Gschwendtner.\n\nThis is free software; you can redistribute it and/or modify it under\nthe same terms as the Perl 5 programming language system itself.\n\n=cut\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcentralnicgroup-opensource%2Fdaemonise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcentralnicgroup-opensource%2Fdaemonise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcentralnicgroup-opensource%2Fdaemonise/lists"}