This is OpenRC runscript for Java applications based on Spring Boot.
-
Add
edge/testing
repository (e.g. http://dl-cdn.alpinelinux.org/alpine/edge/testing) to/etc/apk/repositories
, if you don’t have it yet, and runapk update
. -
Install spring-boot-openrc:
apk add spring-boot-openrc
-
Add CTU’s Gentoo Overlay to your repos.conf or Layman (read howto).
-
emerge -av dev-java/spring-boot-openrc
-
Install socat (optional):
emerge -av net-misc/socat # on Gentoo apk add socat # on Alpine
-
Clone this repository and jump in:
git clone https://github.com/jirutka/spring-boot-openrc.git cd spring-boot-openrc
-
Install runscript and example config:
./install
You may use variable
DESTDIR
to specify the target directories.
-
Symlink runscript
spring-boot-openrc
for your application named e.g.myapp
:cd /etc/init.d ln -s spring-boot-openrc myapp
-
Configure runscript for
myapp
:cp /etc/conf.d/spring-boot-openrc myapp vim /etc/conf.d/myapp
-
Start myapp:
rc-service myapp start
This project is licensed under MIT License. For the full text of the license, see the LICENSE file.