Uploaded image for project: 'Commons Daemon'
  1. Commons Daemon
  2. DAEMON-297

Show jsvc path in debug output

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.1.1
    • None
    • None

    Description

      From a question on the user list:

      $ jsvc -jvm server -debug -home /usr/lib/jvm/java-6-openjdk -cp commons-daemon-1.0.15.jar:api-monitor.jar ApiMonitorDaemon
      
      +-- DUMPING PARSED COMMAND LINE ARGUMENTS --------------
      | Detach:          True
      | Show Version:    No
      | Show Help:       No
      | Check Only:      Disabled
      | Stop:            False
      | Wait:            0
      | Run as service:  No
      | Install service: No
      | Remove service:  No
      | JVM Name:        "server"
      | Java Home:       "/usr/lib/jvm/java-6-openjdk"
      | PID File:        "/var/run/jsvc.pid"
      | User Name:       "null"
      | Extra Options:   1
      |   "-Djava.class.path=commons-daemon-1.0.15.jar:api-monitor.jar"
      | Class Invoked:   "ApiMonitorDaemon"
      | Class Arguments: 0
      +-------------------------------------------------------
      ...
      JSVC re-exec requires execution with an absolute or relative path
      

      Note that the jsvc path is not part of the debug output; it should be, given that it is validated.

      The validation result could also be shown in the debug output, for example:

      | JSVC path:       "jsvc" : path error - must contain /
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: