Edit online

How to Start Oxygen Feedback as a Linux Service

  1. Log in to the machine as a root user.
  2. Go to the Oxygen Feedback Enterprise installation directory.
  3. Edit the feedback.service file and update the value for ExecStart, WorkingDirectory, and user properties (e.g. via vim, vi, or gedit):
    Note: Replace the <installation_directory> with the installation directory path of the Oxygen Feedback Enterprise application. For example: /home/feedback/oxygen-feedback
    [Unit]
    Description=Oxygen Feedback
    After=syslog.target
    
    [Service]
    User=user
    # The path to the oxygen-feedback.jar
    ExecStart=<installation_directory>/oxygen-feedback.jar
    WorkingDirectory=<installation_directory>/
    SuccessExitStatus=143
    
    [Install]
    WantedBy=multi-user.target
  4. Copy the feedback.service file to the /etc/systemd/system/feedback.service file and give the permissions:
    cp ./feedback.service /etc/systemd/system/feedback.service
    chmod 644 /etc/systemd/system/feedback.service
  5. Enable the service and start it:
    systemctl daemon-reload
    systemctl enable feedback.service
    systemctl start feedback.service
    systemctl status feedback.service

Pass additional arguments using the oxygen-feedback.conf file from the installation folder via:

  • RUN_ARGS - The arguments to pass to the program.
  • JAVA_OPTS - Options that are passed to the JVM when it is launched.
  • JAVA_HOME - The location of the java executable is discovered by using the PATH by default, but you can set it explicitly if there is an executable file at $JAVA_HOME/bin/java.
Warning: If you need to edit the /etc/systemd/system/feedback.service file afterward, you must run:
systemctl daemon-reload