# strong-service-upstart

> Generate an upstart job using the provided parameters.

Latest version **1.1.3** (published 2016-05-06) · Artistic-2.0 license · 0 weekly downloads

## Install

```sh
npm install strong-service-upstart
pnpm add strong-service-upstart
yarn add strong-service-upstart
bun add strong-service-upstart
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2016-05-06 |
| First published | 2014-07-21 |
| Weekly downloads | 0 |
| License | Artistic-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Ryan Graham |
| Maintainers | bajtos, chandadharap, ibmcloud-admin, kraman, octet, rfeng, ritch, rmg, strongloop |
| Keywords | upstart |

## Links

- npm: https://www.npmjs.com/package/strong-service-upstart
- Repository: https://github.com/strongloop/strong-service-upstart
- Issues: https://github.com/strongloop/strong-service-upstart/issues
- npm.io page: https://npm.io/package/strong-service-upstart

## Dependencies (2)

- [lodash](https://npm.io/package/lodash.md) ^3.9.3
- [minimist](https://npm.io/package/minimist.md) ^0.2.0

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 1.1.3 (latest) — 2016-05-06
- 1.1.2 — 2016-04-11
- 1.1.1 — 2015-10-01
- 1.1.0 — 2015-05-28
- 1.0.2 — 2015-01-13
- 1.0.1 — 2014-11-15
- 1.0.0 — 2014-10-16
- 0.1.1 — 2014-07-22
- 0.1.0 — 2014-07-21

## README

# strong-service-upstart

Generate an Upstart job using the provided parameters.

## Install

`npm install strong-service-upstart`

## Basic Usage

```js
var fs = require('fs');
var upstart = require('strong-service-upstart');

// Generate Upstart job for my-app
upstart({name: 'my-app'}, function(err, job) {
  fs.writeFile('/etc/init/my-app.conf', job, function(err) {
    if (err) console.error(err);
  });
});

// Also supports synchronous mode
fs.writeFileSync('/etc/init/my-app.conf', upstart({name: 'my-app'}));
```

## Options

This module supports a subset of those used in the node-linux templates:

 * `name` - name of service. In comments in v1.4 and syslog tagging in v0.6.
   `name` is an alias for `label` and `servicesummary`.
 * `description` - multi-word description of service. `description` is an
   alias for `servicedescription`.
 * `author` - sets author field of Upstart job (defaults to current user)
 * `cwd` - working directory to run service from (defaults to `/`)
 * `user` - user to run service as (defaults to `nodbody`)
 * `group` - group to run service as (Upstart v1.4 only, defaults to `nogroup`)
 * `execpath` - path to binary to executable
 * `script` - arguments to execpath (such as a script)
 * `created` - timestamp used in generated job (defaults to current time)
 * `env` - environment variables to set in Upstart job
 * `version` - Upstart version to target: `0.6`, `1.4`(default)
 * `template` - override internal template

## Upstart Versions

Upstart v1.4 added support for setuid and setgid, so the default template
requires Upstart v1.4.

A job file compatible with older versions of Upstart can be generated by
specifying `version: '0.6'` in the options (or by providing your own template).

## Template Format

Templates use [_.template](http://lodash.com/docs#template) from Lodash using
EJS style syntax: `<%= option %>`.

---
_Source: https://npm.io/package/strong-service-upstart · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
