Project can't run on startup using /etc/init.d

  • Hello, please add the declaration of environment variables to your script.

    Code: Select all

    #! /bin/sh
    [ -f /etc/profile.d/RkEnv.sh ] && source /etc/profile.d/RkEnv.sh
    # Your Scripts
    ...
    
    Then make sure that your script has been granted executable permissions, so that it can be run directly after modification to determine the running effect.

    Code: Select all

    /etc/init.d/S99eyedetection start
    
  • Crocodile wrote: 2025-05-19 8:55 Hello, please add the declaration of environment variables to your script.

    Code: Select all

    #! /bin/sh
    [ -f /etc/profile.d/RkEnv.sh ] && source /etc/profile.d/RkEnv.sh
    # Your Scripts
    ...
    
    Then make sure that your script has been granted executable permissions, so that it can be run directly after modification to determine the running effect.

    Code: Select all

    /etc/init.d/S99eyedetection start
    
    Thank you, that worked well, issue is solved!