# svcinstall

> Service installer for OSX and Linux

Latest version **0.3.0** (published 2015-11-13) · Apache 2.0 license · 0 weekly downloads

## Install

```sh
npm install svcinstall
pnpm add svcinstall
yarn add svcinstall
bun add svcinstall
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2015-11-13 |
| First published | 2014-06-28 |
| Weekly downloads | 0 |
| License | Apache 2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+3 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Bryan MacFarlane |
| Maintainers | bryanmacfarlane |
| Keywords | node.js, service, install |

## Links

- npm: https://www.npmjs.com/package/svcinstall
- Repository: https://github.com/bryanmacfarlane/svcinstall
- Issues: https://github.com/bryanmacfarlane/svcinstall/issues
- npm.io page: https://npm.io/package/svcinstall

## Dependencies (2)

- [plist](https://npm.io/package/plist.md) ^1.0.1
- [shelljs](https://npm.io/package/shelljs.md) ^0.3.0

## Recent versions

- 0.3.0 (latest) — 2015-11-13
- 0.2.1 — 2015-02-11
- 0.2.0 — 2015-02-04
- 0.1.3 — 2015-01-29
- 0.1.2 — 2014-07-02
- 0.1.1 — 2014-06-28
- 0.0.1 — 2014-06-28

## README

# SvcInstall

SvcInstall installs services on OSX (launchd) and Linux (inet.d start-stop-dameon)


>  - Small and lightweight
>  - Avoid coupling with any keep alive or monitoring solution.  You Pick ( [SvcHost] is decoupled sister project)
>  - Can point a node project, a shell script, etc... Whatever you choose.
>  - Package installer with your app or service

## Install:

    npm install svcinstall --save


## Sample:
See /samples for more

```js
var path = require('path');
var si = require('svcinstall');

var scriptPath = path.join(__dirname, 'server.js');
var options = { 
		args: ['/usr/local/bin/node', scriptPath],
		workingDirectory: path.dirname(scriptPath)
	};

var svcinstall = new si.SvcInstall();
svcinstall.install('myserver.com.sample', options, function(err, config){
	if (err) {
		console.error('Error:', err.message);
		return;
	}

	console.log('Installed Successfully');

	svcinstall.start(config.definition, function(err) {
		if (err) {
			console.error('Failed to start: ', err.message);
			return;
		}

		console.log('Started Successfully');
	});
});
```

License
----

Apache 2.0

[svchost]:http://github.com/bryanmacfarlane/svchost

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