Using immortal for auto-restart on failure
This commit is contained in:
parent
9ec247fe59
commit
deaba3ff47
22
ireadit.immortal.yml
Normal file
22
ireadit.immortal.yml
Normal file
|
@ -0,0 +1,22 @@
|
|||
# Configuration file to allow `immortal` to restart ireadit if it crashes
|
||||
# (which it all too frequently does, because of some problem in the Tess4J
|
||||
# layer). See https://immortal.run/
|
||||
|
||||
cmd: java -jar /usr/local/bin/ireadit.jar
|
||||
cwd: /usr/local/lib/ireadit
|
||||
env:
|
||||
DEBUG: 1
|
||||
ENVIRONMENT: production
|
||||
pid:
|
||||
follow: /usr/local/lib/ireadit/ireadit.pid
|
||||
parent: /usr/local/lib/ireadit/parent.pid
|
||||
child: /usr/local/lib/ireadit/child.pid
|
||||
log:
|
||||
file: /var/log/ireadit.log
|
||||
age: 86400 # seconds
|
||||
num: 7 # int
|
||||
size: 1 # MegaBytes
|
||||
timestamp: true # will add timesamp to log
|
||||
logger: logger -t ireadit
|
||||
user: www-data
|
||||
wait: 1
|
|
@ -1,21 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>IReadIt test form.</title>
|
||||
<link href="css/standard.css" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
<form action="http://loriner.journeyman.cc:8888/v1/tesseract/" method="POST">
|
||||
<p class="widget">
|
||||
<label for="image-url" title="URL of the image you wish to transcribe">Image URL</label>
|
||||
<input id="image-url" type="text" size="80"/>
|
||||
</p>
|
||||
<p class="widget">
|
||||
<label for="submit">To transcribe the text of this image</label>
|
||||
<input name="action" id="action" type="submit" class="action" value="Transcribe!"/>
|
||||
</p>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in a new issue