{"id":19874503,"url":"https://github.com/strongloop/strong-service-install","last_synced_at":"2025-06-14T12:03:19.130Z","repository":{"id":18773938,"uuid":"21986991","full_name":"strongloop/strong-service-install","owner":"strongloop","description":"Create/install system service for a given app","archived":false,"fork":false,"pushed_at":"2019-02-04T21:37:44.000Z","size":70,"stargazers_count":7,"open_issues_count":8,"forks_count":3,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-04-14T21:07:44.541Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/strongloop.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-18T16:34:46.000Z","updated_at":"2016-12-29T11:38:11.000Z","dependencies_parsed_at":"2022-08-03T15:10:05.751Z","dependency_job_id":null,"html_url":"https://github.com/strongloop/strong-service-install","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Fstrong-service-install","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Fstrong-service-install/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Fstrong-service-install/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Fstrong-service-install/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/strongloop","download_url":"https://codeload.github.com/strongloop/strong-service-install/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252023251,"owners_count":21682151,"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-12T16:23:42.993Z","updated_at":"2025-05-02T10:31:17.645Z","avatar_url":"https://github.com/strongloop.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# strong-service-install\n\nCreate/install system service for a given app.\n\nCurrently only supports Upstart ([strong-service-upstart](https://github.com/strongloop/strong-service-upstart))\nand systemd\n([strong-service-systemd](https://github.com/strongloop/strong-service-systemd)).\n\n## Installation\n\n`npm install strong-service-install`\n\n## Usage\n\n```js\nvar installer = require('strong-service-install');\n\nvar opts = {\n  name: 'my-app',\n  author: require('package.json').author,\n  user: process.env.USER,\n  command: 'my-app --with args --that work',\n  cwd: process.env.HOME,\n};\n\ninstaller(opts, function(err, result) {\n  if (err) {\n    console.error('Failed to install \"my-app\" service:', err.message);\n    process.exit(1);\n  } else {\n    console.log('Successfully installed \"my-app\" service:', result);\n    process.exit(0);\n  }\n});\n```\n\n### CLI\n\nThere is a minimal CLI that exposes the API options as arguments:\n```\nusage: sl-svc-install [options] -- \u003capp and args\u003e\n\nOptions:\n  -h,--help        Print this message and exit.\n  --name NAME      Name to use for service (default derived from app)\n  --user USER      User to run service as.\n  --group GROUP    Group to run service as.\n  --jobFile PATH   Upstart file to create (default /etc/init/\u003cname\u003e.conf)\n  --cwd PATH       Directory to run the service from.\n  --upstart [VER]  Generate Upstart job for VER: 0.6 or 1.4 (default)\n  --systemd        Generate systemd service\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrongloop%2Fstrong-service-install","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstrongloop%2Fstrong-service-install","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrongloop%2Fstrong-service-install/lists"}