Wednesday, July 18, 2001 08:07 AM
I want to run Java application as service on Linux . The time interval between each execution should be configurable. What are the solutions
for this. Thanks in advance.
Re: Java application as service
Friday, July 27, 2001 01:56 AM
Wednesday, July 18, 2001 01:16 PM
Sounds like you're describing a daemon, not a service. Here are a couple of ways to run daemons:
Launch it from a boot-time startup script. The application starts up and is responsible for scheduling its own resting and active periods. In this case, the application keeps running, but spends most of its time quiescent (such as in calls to Thread.sleep())
Create a crontab entry that runs the application at regular intervals.