{"id":14966190,"url":"https://github.com/hipek8/p6-unix-daemonize","last_synced_at":"2025-10-25T16:30:41.534Z","repository":{"id":88551381,"uuid":"72558132","full_name":"hipek8/p6-UNIX-Daemonize","owner":"hipek8","description":null,"archived":false,"fork":false,"pushed_at":"2017-08-07T17:23:38.000Z","size":21,"stargazers_count":3,"open_issues_count":3,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T07:51:28.204Z","etag":null,"topics":["daemon","perl6","unix"],"latest_commit_sha":null,"homepage":null,"language":"Perl 6","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"artistic-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hipek8.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-01T17:09:25.000Z","updated_at":"2022-06-23T05:21:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"40d4c488-9969-41a7-a5f3-16691083a01c","html_url":"https://github.com/hipek8/p6-UNIX-Daemonize","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hipek8%2Fp6-UNIX-Daemonize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hipek8%2Fp6-UNIX-Daemonize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hipek8%2Fp6-UNIX-Daemonize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hipek8%2Fp6-UNIX-Daemonize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hipek8","download_url":"https://codeload.github.com/hipek8/p6-UNIX-Daemonize/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238174106,"owners_count":19428626,"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":["daemon","perl6","unix"],"created_at":"2024-09-24T13:35:58.851Z","updated_at":"2025-10-25T16:30:36.124Z","avatar_url":"https://github.com/hipek8.png","language":"Perl 6","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/hipek8/p6-UNIX-Daemonize.svg?branch=master)](https://travis-ci.org/hipek8/p6-UNIX-Daemonize)\n\nNAME\n====\n\n(WIP) UNIX::Daemonize - run external commands or Perl6 code as daemons\n\nSYNOPSIS\n========\n\n    use UNIX::Daemonize;\n    daemonize(\u003cxcowsay mooo\u003e, :repeat, :pid-file\u003c/var/lock/mycow\u003e);\n\nThen, if you're not a fan of cows repeatedly jumping at you \n\n    terminate-process-group-from-file(\"/var/lock/mycow\");\n\nThis daemon is actually 2 processes: perl6 script you ran above, and external command 'xcowsay', 'mooo'  both same process group. That's why we're terminating whole PG\n\nYou can also daemonize Perl6 code to be run after daemonize call (note no positional arguments):\n\n    use UNIX::Daemonize;\n    daemonize(:pid-file\u003c/var/lock/mycow\u003e);\n    Promise.in(15).then({exit 0;});\n    loop { qq:x/xcowsay moo/; }\n\n`daemonize` binary provided too – you can daemonize directly from shell:\n\n    $ daemonize --pid-file='lock' --repeat xcowsay moo\n    $ kill -15 -`cat lock` \u0026\u0026 rm lock\n\nNegative PID kills whole PGID\n\nDESCRIPTION\n===========\n\nUNIX::Daemonize is configurable daemonizing tool written in Perl 6.\n\nRequirements:\n\n  * POSIX compliant OS (fork, umask, setsid …)\n\n  * Perl6\n\n  * xcowsay to run demo above :)\n\n(WIP)\n\nBUGS / CONTRIBUTING\n===================\n\nRepo can be found [https://github.com/hipek8/p6-UNIX-Daemonize](https://github.com/hipek8/p6-UNIX-Daemonize). Feel free to contribute.\n\nLet me know if you find any bug (not that I'll be surprised…). If you can correct it, PR is our friend.\n\nKNOWN ISSUES:\n\n  * stdout/stderr redirects ignored when running shell set to True, use shell redirects\n\n  * tests fail for osx, investigate and add to travis\n\nAUTHOR\n======\n\nPaweł Szulc \u003cpawel_szulc@onet.pl\u003e\n\nCOPYRIGHT AND LICENSE\n=====================\n\nCopyright 2016 Paweł Szulc\n\nThis library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhipek8%2Fp6-unix-daemonize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhipek8%2Fp6-unix-daemonize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhipek8%2Fp6-unix-daemonize/lists"}