0.1.0 • Published 9 years ago

nibbler-upstart v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

nibbler-upstart

Upstart module for Nibbler.

Installation

npm install nibbler-upstart

Usage

This sets up and starts a service that runs /opt/app/server.js using iojs binary on your local host:

var upstart = require('nibbler-upstart')

var service = {
  name: 'app',
  execpath: 'iojs',
  script: '/opt/app/server.js'
}

upstart.install(service, function(err) {
  if (err) throw err
  upstart.start(service, function(err) {
    if (err) throw err
  })
})