This documentation is deprecated
Please see the new LoopBack documentation site.
Skip to end of metadata
Go to start of metadata

Icon

Use the the slc pm-install or sl-pm-install command to install StrongLoop Process Manager as a service on Linux distributions that support Upstart or systemd.

By default, the command uses Upstart 1.4 or newer. The default will work, for example on Ubuntu 12.04, 12.10, 13.04, 13.10, 14.04, or 14.10. Otherwise:

  • On systems with Upstart 0.6 - 1.3.x (for example Ubuntu 10.04, CentOS, or AWS Linux), use the --upstart 0.6 option.
  • On systems that support systemd instead (for example RHEL 7, Ubuntu 15.04 /15.10, Fedora, or OpenSUSE), use the --systemd option.

Install StrongLoop Process Manager as an operating system service.  

On a system where you have installed StrongLoop with npm install -g strongloop, use the slc pm-install command.  One a production host where you've installed StrongLoop Process Manager with npm install g strong-pm, use sl-pm-install. The two commands are equivalent.

SYNOPSIS

slc pm-install [options]
Install StrongLoop Process Manager as a service using the specified options.  By default, the command installs the service as an Upstart job using a template for Upstart 1.4 or higher.  Use the --systemd option to install as a systemd service instead.  Use the --upstart <version> option to specify a different version of Upstart.

See Setting up a production host for more information.

OPTIONS

-b, --base <base>
Base directory in which to work.  Default is home directory of user running Process Manager; see --user option.

-d, --driver <driver>  
Specify application execution driver, either direct (the default) or
 docker.

-e, --set-env env=val... 
Initial application environment variables, where env is name of the enviroment variable, val is value.  To set multiple variables, enclose them all in quotes as a single argument, and separate each pair with a space, for example "K1=V1 K2=V2 K3=V3".

-f, --force 
Overwrite existing job file if present.

--http-auth <creds>   
Enable HTTP basic authentication, requiring the specified credentials for every request sent to the REST API.
<creds> has the form <username>:<password>.

-j, --job-file <path>
Path of Upstart job to create (default /etc/init/strong-pm.conf)

-m, --metrics <stats
Specify --metrics option for supervisor running deployed applications.  See Integrating with third-party consoles for more information.

-n, --dry-run 
Don't write any files.

-p, --port <port> 
Listen on <port>.  Default is 8701.

-P, --base-port <port> 
Run applications on port number <port> + service ID.  Default base port is 3000.

[–systemd | --upstart <version> ]
Install Process Manager as either:

    • A systemd service.
    • An Upstart job (Upstart 1.4 is the default).  Use this option to specify Upstart 0.6.

-u, --user 
Run StrongLoop Process Manager as this user.  Default is strong-pm.

STANDARD OPTIONS

-h, --help
Display help information.

-v, --version
Display version number.

  • No labels