YAML-Configurable Java Application Wrapper
Launch your Java application more safely, explicitly, and flexibly!
This script does ...
- (before the launch)
- Load settings from a YAML file
- Verify the OS user name and Java version
- Check if the application has already been running when duplicate running is prohibited
- Execute pre-launch commands
- Log to syslog
- Launch the Java application with the proper options
- (after the launch)
- Log to syslog
- Execute post-launch commands
- Python: 2.6 / 2.7 / 3.2 / 3.3 / 3.4
- pyyaml
- six
pip
command may requiresudo
Operation | Command |
---|---|
Install | pip install javactl |
Upgrade | pip install --upgrade javactl |
Uninstall | pip uninstall javactl |
Check installed version | javactl --version |
Help | javactl -h |
- Then, write your configuration to the file
your-app.yml
.
See the example below.
See this example.
- 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
That's it!