Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
1.0.15
-
None
-
None
Description
A developer new to the subject of "daemonizing" may be left with an unclear picture of what he'd gain from using Commons Daemon with his app after reading the intro:
http://commons.apache.org/proper/commons-daemon/index.html
The features and benefits of the software could be stated in more clear terms.
Here're potential some suggestions for a list of features:
- automatically restart JVM if it dies
- enable secure shutdown of JVM process using standard OS mechanisms (Tomcat TCP based shutdown mechanism is error-prone and unsecure)
- redirect of STDERR/STDOUT and set JVM process name
- allow integration with OS init script mechanisms (record JVM process pid)
- detach JVM process from parent process and console
- run JVM and application with reduced OS privileges
- allow coordinating log file management with OS tools such as logrotate (reopen log files with signal SIGUSR1)
...