{"id":26804807,"url":"https://github.com/throughnothing/ubic-service-serverstarter","last_synced_at":"2025-03-29T22:27:13.991Z","repository":{"id":5301407,"uuid":"6482573","full_name":"throughnothing/Ubic-Service-ServerStarter","owner":"throughnothing","description":"Run programs using Server::Starter","archived":false,"fork":false,"pushed_at":"2016-04-26T22:18:35.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-04-14T01:26:40.268Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://metacpan.org/release/Ubic-Service-ServerStarter/","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"ljburton/commons","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/throughnothing.png","metadata":{"files":{"readme":"README.md","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":"2012-11-01T00:01:11.000Z","updated_at":"2016-04-23T19:20:27.000Z","dependencies_parsed_at":"2022-09-14T14:51:02.460Z","dependency_job_id":null,"html_url":"https://github.com/throughnothing/Ubic-Service-ServerStarter","commit_stats":null,"previous_names":[],"tags_count":3,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/throughnothing%2FUbic-Service-ServerStarter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/throughnothing%2FUbic-Service-ServerStarter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/throughnothing%2FUbic-Service-ServerStarter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/throughnothing%2FUbic-Service-ServerStarter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/throughnothing","download_url":"https://codeload.github.com/throughnothing/Ubic-Service-ServerStarter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246252551,"owners_count":20747766,"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":"2025-03-29T22:27:13.556Z","updated_at":"2025-03-29T22:27:13.984Z","avatar_url":"https://github.com/throughnothing.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NAME\n\nUbic::Service::ServerStarter - Run programs using Server::Starter\n\n# VERSION\n\nversion 0.003\n\n# SYNOPSIS\n\n    use Ubic::Service::ServerStarter;\n    return Ubic::Service::ServerStarter-\u003enew({\n        cmd =\u003e [\n            'starman',\n            '--preload-app',\n            '--env' =\u003e 'development',\n            '--workers' =\u003e 5,\n        ],\n        args =\u003e {\n            interval =\u003e 5,\n            port =\u003e 5003,\n            signal-on-hup =\u003e 'QUIT',\n            signal-on-term =\u003e 'QUIT',\n        },\n        ubic_log =\u003e '/var/log/app/ubic.log',\n        stdout   =\u003e '/var/log/app/stdout.log',\n        stderr   =\u003e '/var/log/app/stderr.log',\n        user     =\u003e \"www-data\",\n    });\n\n# DESCRIPTION\n\nThis service allows you to wrap any command with [Server::Starter](https://metacpan.org/pod/Server::Starter), which\nenables graceful reloading of that app without any downtime.\n\n# NAME\n\nUbic::Service::ServerStarter - ubic service class for running commands\nwith [Server::Starter](https://metacpan.org/pod/Server::Starter)\n\n# METHODS\n\n- _args_ (optional)\n\n    Arguments to send to `start_server`.\n\n- _cmd_ (required)\n\n    ArrayRef of command + options to run with server starter.  Everything passed\n    here will go be put after the `--` in the `start_server` command:\n\n        start_server [ args ] -- [ cmd ]\n\n    This argument is required becasue we have to have something to run!\n\n- _status_\n\n    Coderef to special function, that will check status of your application.\n\n- _ubic\\_log_\n\n    Path to ubic log.\n\n- _stdout_\n\n    Path to stdout log.\n\n- _stderr_\n\n    Path to stderr log.\n\n- _proxy\\_logs_\n\n    Boolean flag. If enabled, `ubic-guardian` will replace daemon's stdout and\n    stderr filehandles with pipes, proxy all data to the log files, and reopen\n    them on `SIGHUP`.\n\n- _user_\n\n    User under which `start_server` will be started.\n\n- _group_\n\n    Group under which `start_server` will be started. Default is all user groups.\n\n- _cwd_\n\n    Change working directory before starting a daemon.\n\n- _pidfile_\n\n    Pidfile for `Ubic::Daemon` module.\n\n    # AUTHOR\n\n    William Wolf \u003cthroughnothing@gmail.com\u003e\n\n    # COPYRIGHT AND LICENSE\n\n\n\n    William Wolf has dedicated the work to the Commons by waiving all of his\n    or her rights to the work worldwide under copyright law and all related or\n    neighboring legal rights he or she had in the work, to the extent allowable by\n    law.\n\n    Works under CC0 do not require attribution. When citing the work, you should\n    not imply endorsement by the author.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthroughnothing%2Fubic-service-serverstarter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthroughnothing%2Fubic-service-serverstarter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthroughnothing%2Fubic-service-serverstarter/lists"}