Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ocadaruma/go-javactl
YAML-Configurable Java Application Wrapper
https://github.com/ocadaruma/go-javactl
Last synced: about 2 months ago
JSON representation
YAML-Configurable Java Application Wrapper
- Host: GitHub
- URL: https://github.com/ocadaruma/go-javactl
- Owner: ocadaruma
- License: apache-2.0
- Created: 2016-10-23T07:42:52.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-08T13:11:25.000Z (about 8 years ago)
- Last Synced: 2024-06-20T02:08:54.103Z (6 months ago)
- Language: Go
- Homepage:
- Size: 401 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-javactl
YAML-Configurable Java Application Wrapper
[![Build Status](https://travis-ci.org/ocadaruma/go-javactl.svg?branch=master)](https://travis-ci.org/ocadaruma/go-javactl)
Re-implementation of [mogproject/javactl](https://github.com/mogproject/javactl) in Go.
## Description
Since JVM has many parameters, writing wrapper shell script for launching Java application is painful.
You can easily configure and launch Java applications via `go-javactl` (also original `mogproject/javactl` ofcourse).
## Features
- Load configurations from a YAML file
- Verify OS user name and Java version
- Check if the application has already been running when duplicate running is prohibited
- Execute pre-launch commands
- if some pre-launch commads failed, main Java application won't executed.
- Log to syslog
- Launch the Java application with the proper options
- Execute post-launch commands## Installation
`go-javactl` is available in binary format for Linux and Mac OSX.
[Download latest release here](https://github.com/ocadaruma/go-javactl/releases/latest) and put the binary to somewhere you want.
## Configuration Example
See the [example](./testdata/example.yml).
## Usage
- Dry-run mode
```
javactl --check /path/to/your-app.yml
```- Launch the java application
```
javactl /path/to/your-app.yml
```- Launch with arguments
```
javactl /path/to/your-app.yml --option-for-your-app arg1 arg2
```