Uploaded image for project: 'Continuum'
  1. Continuum
  2. CONTINUUM-483

Setting RUN_AS_USER causes startup script to fail.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.1
    • 1.0.2
    • Core system
    • None
    • gentoo 2.6.5 kernel, bash 2.05

    Description

      If the run.sh script is modified to include a RUN_AS_USER, this line in the script

      su -m $RUN_AS_USER -c "exec $CMDNICE $WRAPPER_CMD $WRAPPER_CONF wrapper.pidfile=$PIDFILE wrapper.daemonize=TRUE"

      fails with the following error:

      /bin/bash: continuum: No such file or directory

      reducing the line yields the same error right down to the 'su -m user_name'. However, if the -m is moved to beyond the user, everything works out:

      su $RUN_AS_USER -m -c "exec $CMDNICE $WRAPPER_CMD $WRAPPER_CONF wrapper.pidfile=$PIDFILE wrapper.daemonize=TRUE"

      note that it occurs twice in the file.

      Attachments

        Issue Links

          Activity

            People

              evenisse Emmanuel Venisse
              corridor Corridor Software Developer
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: