1supervisor(20 January 2022)                        supervisor(20 January 2022)
2
3
4
5              Node Supervisor is used to restart programs when they crash.  It
6              can also be used to restart programs when a *.js file changes.
7
8              Usage: supervisor [options] <program>  supervisor  [options]  --
9              <program> [args ...]
10
11              Required: <program> The program to run.
12
13              Options: -w|--watch <watchItems> A comma-delimited list of fold‐
14              ers or js files to watch for changes.  When a  change  to  a  js
15              file occurs, reload the program Default is '.'
16
17                     -i|--ignore <ignoreItems> A comma-delimited list of fold‐
18                     ers to ignore for changes.  No default
19
20                     --ignore-symlinks Enable  symbolic  links  ignoring  when
21                     looking for files to watch.
22
23                     -p|--poll-interval   <milliseconds>  How  often  to  poll
24                     watched files for changes.  Defaults to Node default.
25
26                     -e|--extensions <extensions> Specific file extensions  to
27                     watch  in addition to defaults.  Used when --watch option
28                     includes folders Default is 'node,js'
29
30                     -x|--exec <executable> The executable that runs the spec‐
31                     ified program.  Default is 'node'
32
33                     --debug[=port] Start node with --debug flag.
34
35                     --debug-brk[=port]  Start  node  with  --debug-brk[=port]
36                     flag.
37
38                     --harmony Start  node  with  --harmony  flag.   --inspect
39                     Start node with --inspect flag.
40
41                     --harmony_default_parameters   Start   node  with  --har‐
42                     mony_default_parameters flag.
43
44                     -n|--no-restart-on error|exit Don't automatically restart
45                     the  supervised program if it ends.  Supervisor will wait
46                     for a change in the source files.  If  "error",  an  exit
47                     code  of 0 will still restart.  If "exit", no restart re‐
48                     gardless of exit code.  If "success", no restart only  if
49                     exit code is 0.
50
51                     -t|--non-interactive  Disable interactive capacity.  With
52                     this option, supervisor won't listen to stdin.
53
54                     -k|--instant-kill use SIGKILL (-9) to terminate child in‐
55                     stead of the more gentle SIGTERM.
56
57                     --force-watch Use fs.watch instead of fs.watchFile.  This
58                     may be useful if you see a high cpu load on a windows ma‐
59                     chine.
60
61                     -s|--timestamp  Log  timestamp  after  each run.  Make it
62                     easy to tell when the task last ran.
63
64                     -h|--help|-?  Display these usage instructions.
65
66                     -q|--quiet Suppress DEBUG messages
67
68                     -V|--verbose Show extra DEBUG messages
69
70              Options available after start: rs - restart process.  Useful for
71              restarting supervisor eaven if no file has changed.
72
73              Examples: supervisor myapp.js supervisor myapp.coffee supervisor
74              -w scripts -e myext -x myrunner myapp supervisor -- server.js -h
75              host -p port
76
77
78
79                                    0.12.0         supervisor(20 January 2022)
Impressum