Skip to content

Commit

Permalink
Changed deamonization sequence for more reliable start/stop/restart
Browse files Browse the repository at this point in the history
  • Loading branch information
vnesek committed Mar 16, 2016
1 parent ef50c53 commit 91884fe
Show file tree
Hide file tree
Showing 3 changed files with 224 additions and 224 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
Jetty Daemon Runner
===================

Ever wanted a servlet engine in a single runnable JAR that could
correctly daemonize and run WAR from a command line?
Ever wanted a servlet engine in a single runnable JAR that could
correctly daemonize and run WAR from a command line?

Jetty Daemon Runner improves over existing jetty-runner with JVM daemonization.
It's packaged as a single runnable jar you can use on Unix platforms
supported by Akuma/JNA.

[Download latest release (0.5)](https://github.com/vnesek/jetty-daemon-runner/releases/tag/v0.5)
[Download latest release (0.6)](https://github.com/vnesek/jetty-daemon-runner/releases/tag/v0.6)

Usage
-----

* Start Jetty at port 8080 serving WAR at / as a daemon in background

```sh
java -jar jetty-daemon.jar --start --pid some.pid some.war
java -jar jetty-daemon.jar --start --pid some.pid some.war
```

* Stop Jetty using pid file

```sh
java -jar jetty-daemon.jar --stop --pid some.pid
java -jar jetty-daemon.jar --stop --pid some.pid
```

Features
--------
* Supports Java 8 on Unix
* Start/stop/restart service
* Start/stop/restart service
* Detaching from terminal (no need for nohup, java service wrapper...)
* All dependencies packaged as a single runnable JAR
* BSD style license
Expand All @@ -44,7 +44,7 @@ Addition daemon server opts:
--pid file - PID file
--chdir dir - change running directory
Usage: java [-Djetty.home=dir] -jar jetty-runner.jar [--help|--version] [ server opts] [[ context opts] context ...]
Usage: java [-Djetty.home=dir] -jar jetty-runner.jar [--help|--version] [ server opts] [[ context opts] context ...]
Server opts:
--version - display version and exit
--log file - request log filename (with optional 'yyyy_mm_dd' wildcard
Expand All @@ -67,7 +67,7 @@ References
----------

* [Akuma](http://akuma.kohsuke.org/) for JVM daemonization
* [JNA](https://github.com/java-native-access/jna) for native code access
* [JNA](https://github.com/java-native-access/jna) for native code access
* [Jetty Runner](http://www.eclipse.org/jetty/documentation/current/runner.html) favorite servlet engine

Author Contact and Support
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.nmote.jetty</groupId>
<artifactId>jetty-daemon-runner</artifactId>
<version>0.5</version>
<version>0.6</version>
<name>Jetty Daemon Runner</name>
<description>Jetty daemon runner for Unix</description>
<url>https://github.com/vnesek/jetty-daemon-runner</url>
Expand Down Expand Up @@ -46,12 +46,12 @@
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-runner</artifactId>
<version>9.3.5.v20151012</version>
<version>9.3.8.v20160314</version>
</dependency>
<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna</artifactId>
<version>4.2.1</version>
<version>4.2.2</version>
</dependency>
</dependencies>

Expand Down
Loading

0 comments on commit 91884fe

Please sign in to comment.