I created a Node.js app that I'm trying to autostart after IPL. But it seems like it's not exactly working. The configuration of the service is as follows and was created using scinit without any modifications afterwards. I thought it might be related to the issue of running multiple STRTCPSVR commands simultaneously and did set ADDENVVAR ENVVAR(SC_TCPSVR_SUBMIT) VALUE('Y') LEVEL(*SYS) REPLACE(*YES)
My config is as follows
gueney@TFSVR3:~ $ sc info autostart_example
---------------------------------------------------------------------
autostart_example (Autostart Example 1)
Defined in: /home/GUENEY/.sc/services/autostart_example.yml
Working Directory: /home/GUENEY/code/autostart_example
Startup Command: node src
Startup Wait Time (s): 60
Shutdown Wait Time (s): 45
Check-alive conditions: PORT:9998
Batch Mode: <submitted to batch>
Batch Job Name: SC_autosta
Inherits environment variables?: true
Custom environment variables:
PATH=/QOpenSys/pkgs/bin:/QOpenSys/pkgs/lib/nodejs14/bin/:/home/GUENEY/bin:/QOpenSys/usr/bin:/usr/ccs/bin:/QOpenSys/usr/bin/X11:/usr/sbin:.:/usr/bin
PORT=9998
---------------------------------------------------------------------
gueney@TFSVR3:~ $ sc loginfo autostart_example
autostart_example: ¯\_😀_/¯ (try checking in log directory /home/GUENEY/.sc/logs)
I created a Node.js app that I'm trying to autostart after IPL. But it seems like it's not exactly working. The configuration of the service is as follows and was created using
scinitwithout any modifications afterwards. I thought it might be related to the issue of running multiple STRTCPSVR commands simultaneously and did setADDENVVAR ENVVAR(SC_TCPSVR_SUBMIT) VALUE('Y') LEVEL(*SYS) REPLACE(*YES)My config is as follows