Uploaded image for project: 'JOC - JobScheduler Operations Center'
  1. JOC - JobScheduler Operations Center
  2. JOC-1816

Monitor Service - Command Notification should specify the working directory for command execution

    XMLWordPrintable

Details

    Description

      Current Situation

      • The CommandFragment element is used to execute operating system commands.
      • The system commands are executed using the Java Process API.
      • The CommandFragment Notification interface does not explicitly set the working directory of the execution content.
        • This means that the Process API uses the value of the system property user.dir.
        • This property is set to the same value as  jetty.base during the default JOC installation.

      Desired Behaviour

      • To ensure that commands run in an environment appropriate for the JOC Cockpit service user, the CommandFragment Notification Interface (underlying Process API)  should use the java.io.tmpdir system property.
        • This corresponds to the JETTY_BASE/temp directory.

      Attachments

        Activity

          People

            re Robert Ehrlich
            re Robert Ehrlich
            Robert Ehrlich Robert Ehrlich
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: