Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorAlex Wolfe <alexkwolfe@gmail.com>2010-08-19 03:48:00 +0400
committerisaacs <i@izs.me>2010-08-22 07:21:39 +0400
commitdbc57eb886a023670b9d7394f40d5bb83781b8af (patch)
treeeb6c86013cbd9a13e32c8d09706c5474bc25d933 /man
parent9008ac5c1da6c15191ac7063c5b7720392c5d7fc (diff)
docs: Restart command is used if it is defined in packages.json. Otherwise, stop/start is used if possible.
Diffstat (limited to 'man')
-rw-r--r--man/restart.116
1 files changed, 2 insertions, 14 deletions
diff --git a/man/restart.1 b/man/restart.1
index 1ecca09ec..117b9f465 100644
--- a/man/restart.1
+++ b/man/restart.1
@@ -14,25 +14,13 @@ npm restart <name> [<version>]
.fi
.
.SH "DESCRIPTION"
-This runs a package\'s "stop" script, if one was provided, and then
+This runs a package\'s "restart" script, if one was provided\.
+Otherwise it runs package\'s "stop" script, if one was provided, and then
the "start" script\.
.
.P
If no version is specified, then it restarts the "active" version\.
.
-.P
-This is identical to doing:
-.
-.IP "" 4
-.
-.nf
-npm stop <name>
-npm start <name>
-.
-.fi
-.
-.IP "" 0
-.
.SH "SEE ALSO"
.
.IP "\(bu" 4