How to Start Oxygen Feedback as a Linux Service
- Log in to the machine as a root user.
- Go to the Oxygen Feedback Enterprise installation directory.
- 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
- 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
- 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