{"id":19874519,"url":"https://github.com/strongloop/strong-service-systemd","last_synced_at":"2025-09-10T17:35:18.702Z","repository":{"id":22993355,"uuid":"26343826","full_name":"strongloop/strong-service-systemd","owner":"strongloop","description":"Generate an systemd service based on provided parameters","archived":false,"fork":false,"pushed_at":"2019-02-05T07:50:53.000Z","size":23,"stargazers_count":11,"open_issues_count":3,"forks_count":3,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-04-07T01:05:42.381Z","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-11-08T00:02:36.000Z","updated_at":"2019-08-01T15:36:41.000Z","dependencies_parsed_at":"2022-08-21T18:50:50.231Z","dependency_job_id":null,"html_url":"https://github.com/strongloop/strong-service-systemd","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Fstrong-service-systemd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Fstrong-service-systemd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Fstrong-service-systemd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Fstrong-service-systemd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/strongloop","download_url":"https://codeload.github.com/strongloop/strong-service-systemd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252023257,"owners_count":21682152,"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:50.478Z","updated_at":"2025-05-02T10:31:19.746Z","avatar_url":"https://github.com/strongloop.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# strong-service-systemd\n\nGenerate an systemd service using the provided parameters.\n\n## Install\n\n`npm install strong-service-systemd`\n\n## Basic Usage\n\n```js\nvar fs = require('fs');\nvar systemd = require('strong-service-systemd');\n\n// Generate systemd service for my-app\nsystemd({name: 'my-app'}, function(err, service) {\n  fs.writeFile('/etc/systemd/system/my-app.service', service, function(err) {\n    if (err) return console.error(err);\n  });\n});\n\n// Also supports synchronous mode\nfs.writeFileSync('/etc/systemd/system/my-app.service', systemd({name: 'my-app'}));\n```\n\n## Options\n\nThis module supports a subset of those used in the node-linux templates:\n\n * `name` - name of service.\n   `name` is an alias for `label` and `servicesummary`.\n * `description` - multi-word description of service. `description` is an\n   alias for `servicedescription`.\n * `author` - sets author field of systemd job (defaults to current user)\n * `cwd` - working directory to run service from (defaults to `/`)\n * `user` - user to run service as (defaults to `nodbody`)\n * `group` - group to run service as (defaults to `nogroup`)\n * `execpath` - path to binary to executable\n * `script` - arguments to execpath (such as a script)\n * `created` - timestamp used in generated job (defaults to current time)\n * `env` - environment variables to set in systemd job\n * `template` - override internal template\n\n## Template Format\n\nTemplates use [_.template](http://lodash.com/docs#template) from Lodash using\nEJS style syntax: `\u003c%= option %\u003e`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrongloop%2Fstrong-service-systemd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstrongloop%2Fstrong-service-systemd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrongloop%2Fstrong-service-systemd/lists"}