# beet

Latest version **0.1.14** (published 2012-04-03) · 0 weekly downloads

## Install

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

Provides the commands `beet`, `beet-install`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.14 |
| Published | 2012-04-03 |
| First published | 2011-07-13 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 9 |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Craig Condon |
| Maintainers | architectd |

## Links

- npm: https://www.npmjs.com/package/beet
- Repository: https://github.com/crcn/beet
- npm.io page: https://npm.io/package/beet

## Dependencies (9)

- [sk](https://npm.io/package/sk.md) 0.0.8
- [ini](https://npm.io/package/ini.md) 1.0.1
- [celeri](https://npm.io/package/celeri.md) 0.2.0
- [node-fs](https://npm.io/package/node-fs.md) 0.1.0
- [structr](https://npm.io/package/structr.md) 0.1.0
- [optimist](https://npm.io/package/optimist.md) *
- [yaconfig](https://npm.io/package/yaconfig.md) 0.0.2
- [underscore](https://npm.io/package/underscore.md) 1.2.2
- [supervisord](https://npm.io/package/supervisord.md) 0.0.3

## Recent versions

- 0.1.14 (latest) — 2012-04-03
- 0.1.13 — 2011-12-03
- 0.1.12 — 2011-11-30
- 0.1.11 — 2011-09-26
- 0.1.10 — 2011-09-26
- 0.1.9 — 2011-09-26
- 0.1.8 — 2011-09-26
- 0.1.7 — 2011-09-26
- 0.1.6 — 2011-09-25
- 0.1.5 — 2011-09-24
- 0.1.4 — 2011-09-23
- 0.1.2 — 2011-09-22
- 0.1.1 — 2011-09-20
- 0.1.0 — 2011-09-19
- 0.0.7 — 2011-09-12
- … 36 more at https://npm.io/package/beet/versions

## README

An extension to the node.js [supervisord](https://github.com/spiceapps/supervisord) library with some additional candy. 

#### Features

- Installs supervisord if it's not already installed.
	- Adds an optional upstart script to run supervisord at runtime

- Ability to add processes to supervisord by group.
- Reads supervisord.conf file for authentication / port.    
- Ability to load/unload any supervisord.conf file.

                                     
### Notes
                                
- Beet modifies only one setting in supervisord.conf, which is `[include]`. Beet adds a directory to scan which is `/etc/beet/enabled/*.conf`. Any configuration files
Are symlinked to this directory. 
- After modifications to supervisord, beet calls `supervisorctl update` to load / unload any changes, versus restarting supervisord.        

#### Installation

	npm install beet -g && beet --install

#### Examples

Easiest one is to add a program to the default scripts configuration. This is located in `/etc/beet/available/scripts.conf`, and
is enabled in `/etc/beet/enabled` 

```javascript

var beet = require('beet');


beet.scripts.addProgram({ script: __dirname + '/script.js', name: 'my script' }, function(err, result)
{
	//started!
});                    

```    

You can also specify commands:
   
```javascript                 

beet.scripts.addProgram({ command: '/bin/mongod' }, function(err, result)
{
	//started!
})            

````
                                
You can just as easily load any supervisord.conf:

```javascript
   
var beet = require('beet'),
config = beet.configuration('/path/to/my/custom/supervisord.conf');          
                    
config.addProgram({ script: '/my/script.js' }, function()
{
	
});

config.enable();//enable

```                     

If you want to disable any configuration file:

```javascript
   
require('beet').configuration('/path/to/config.conf').disable();

```

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