Skip to content

[Q] How to ensure that user-specific to autostart after IPL?  #220

@KerimG

Description

@KerimG

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions