]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/doc/api/npm-restart.md
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / doc / api / npm-restart.md
1 npm-restart(3) -- Restart a package
2 ===================================
3
4 ## SYNOPSIS
5
6     npm.commands.restart(packages, callback)
7
8 ## DESCRIPTION
9
10 This restarts a package (or multiple packages).
11
12 This runs a package's "stop", "restart", and "start" scripts, and associated
13 pre- and post- scripts, in the order given below:
14
15 1. prerestart
16 2. prestop
17 3. stop
18 4. poststop
19 5. restart
20 6. prestart
21 7. start
22 8. poststart
23 9. postrestart
24
25 If no version is specified, then it restarts the "active" version.
26
27 npm can restart multiple packages. Just specify multiple packages in
28 the `packages` parameter.
29
30 ## NOTE
31
32 Note that the "restart" script is run **in addition to** the "stop"
33 and "start" scripts, not instead of them.
34
35 This is the behavior as of `npm` major version 2.  A change in this
36 behavior will be accompanied by an increase in major version number
37
38 ## SEE ALSO
39
40 * npm-start(3)
41 * npm-stop(3)