Skip to content
Browse files

Add --pidfile to the README.

  • Loading branch information...
1 parent 95148e5 commit 970ff017807e79a1f690e318ca9fef6da39752bf @wvl committed
Showing with 5 additions and 2 deletions.
  1. +5 −0 README.md
  2. +0 −2 bin/up
View
5 README.md
@@ -79,6 +79,11 @@ The `up` command accepts the following options:
- Strings like `'10s'` are accepted.
- Defaults to `'10m'`, or `'500ms'` if `NODE_ENV` is `development`.
+- `-f`/`--pidfile`
+
+ - a filename to write the pid to
+ - If specified, restarts can be achieved with: "kill -s SIGUSR2 `cat pidfile.txt`"
+
### B) JavaScript API
```js
View
2 bin/up
@@ -153,8 +153,6 @@ if (program.pidfile) {
fs.writeFile(program.pidfile, process.pid, function(err) {
if (err) {
error('\n Error writing pidfile: "%s"\n', program.pidfile, err);
- } else {
- debug('`\033[97mkill -s SIGUSR2 `cat %s`\033[90m` to restart', program.pidfile);
}
});
}

0 comments on commit 970ff01

Please sign in to comment.
Something went wrong with that request. Please try again.