On IBM i
Starting Instances
Profound.js instances can be set up at installation time to start automatically when the PROFOUNDJS subsystem is started.
To start all Profound.js instances, simply start the PROFOUNDJS subsystem:
STRSBS SBSD(PROFOUNDJS)
To start an individual Profound.js instance, use the following command:
SBMJOB JOB(PROFOUNDJS) JOBD(PJS_BASE/PROFOUNDJS) USER(*JOBD) RQSDTA(*JOBD) SYSLIBL(*SYSVAL) CURLIB(*USRPRF) INLLIBL(*JOBD) CCSID(*USRPRF)
If the instance name is something other than PROFOUNDJS, substitute the instance name for PROFOUNDJS in the above command.
Ending Instances
Ending the PROFOUNDJS subsystem will automatically end all Profound.js instances:
ENDSBS SBS(SDSD) DELAY(5)
To end an individual instance manually, first use the following command to locate all running instances:
WRKACTJOB SBS(PROFOUNDJS)
And then use option number 4 (ENDJOB) on the entry for the job that corresponds to the instance you'd like to end:
On your local PC or another server
To start Profound.js on your local PC or a non-IBM i server using Node, use the following command from your Profound.js installation directory:
node start.js