Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
JavaScript C

Merge pull request #19 from c9/fix/watcher

Pointed run.js to the right watcher.c file
latest commit 07c781649c
@piscisaureus piscisaureus authored
Failed to load latest commit information.
.gitignore build: add Makefile
Makefile build: add Makefile
README.md Update README.md
_test.js
monitor.js Improved monitor and unix_probes with run.js support
package.json added package descriptor
probe_server.js Fixes and tweaks.
probes.js Fixes and tweaks.
probes_test.js Refactor to include probes and probes library (and example unix_probes
run.js Pointed run.js to the right watcher.c file
runjs probe
unix_probes.js unix probes now every 10s
watcher.c watcher: make function args const

README.md

Run.js

Run.js is a CLI tool that manages and daemonizes your node.js processes. It monitors running applications, collects logs and makes sure they are always running. Run.js is developed by and used on a production environment to monitor all services by Cloud9 IDE.

First use

When using run.js, please use the stable branch.

# clone the repo
$ git clone git://github.com/c9/runjs.git
# checkout stable branch
$ git checkout stable
# compile the binary on your platform
$ ./runjs

# link the runjs folder in your PATH or symlink in your own project folder
# $ ln -s $PWD/runjs /usr/local/bin/runjs

Control your application

Runjs works with tag names, that you refer to in your commands.

# list all managed processes (+ state)
runjs

# start a node script
runjs start -t:TAGNAME /path/to/nodejs/file.js -other -command -line -options

# view logs
runjs tail TAGNAME

# restart process
runjs restart TAGNAME

# stop process
runjs stop TAGNAME

# panic, kill all runjs monitored processes
runjs panic
Something went wrong with that request. Please try again.