Skip to content

Instantly share code, notes, and snippets.

@JCapriotti
Created November 29, 2016 16:54
Show Gist options
  • Save JCapriotti/8ba480f60f958e95a3eadbce23093b43 to your computer and use it in GitHub Desktop.
Save JCapriotti/8ba480f60f958e95a3eadbce23093b43 to your computer and use it in GitHub Desktop.
Karaf Service Wrapper Output
RedHat/Fedora/CentOS Linux system detected (SystemV):
To install the service:
$ ln -s /usr/local/karaf/bin/karaf-service /etc/init.d/
$ chkconfig karaf-service --add
To start the service when the machine is rebooted:
$ chkconfig karaf-service on
To disable starting the service when the machine is rebooted:
$ chkconfig karaf-service off
To start the service:
$ service karaf-service start
To stop the service:
$ service karaf-service stop
To uninstall the service :
$ chkconfig karaf-service --del
$ rm /etc/init.d/karaf-service
For systemd compliant Linux:
To install the service (and enable at system boot):
$ systemctl enable /usr/local/karaf/bin/karaf.service
To start the service:
$ systemctl start karaf
To stop the service:
$ systemctl stop karaf
To check the current service status:
$ systemctl status karaf
To see service activity journal:
$ journalctl -u karaf
To uninstall the service (and disable at system boot):
$ systemctl disable karaf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment