Displaying 1 to 6 from 6 results

respawn - Spawn a process and restart it if it crashes

  •    Javascript

Spawn a process and restart it if it crashes.Per default respawn will restart you app indefinitely. To set a max restart limit set the maxRestarts option.

respawn-group - Manage a group of respawn monitors

  •    Javascript

group.add(id, command, opts) -> mon Add a new respawn monitor. See respawn for more information. If you add a new monitor with the same id as an old one it will be used when the old monitor stops.

first-run - Check if it's the first time the process is run

  •    Javascript

Can be used to greet the user the first time they use your CLI app, show usage tip, initialize something, etc.The name used to identify it.




exiting - Safely shutdown http://hapijs.com servers.

  •    Javascript

Safely shutdown hapi.js servers whenever the process exits. While it is simple to start and stop a server, ensuring proper shutdown on external, or internal, triggers can be cumbersome to handle properly. exiting makes this easy by managing your Hapi servers, taking care of starting and stopping them as appropriate.