Add clouseau

This commit is contained in:
thomas 2022-10-12 03:19:49 +02:00
parent 3cc1c674b2
commit b3b102814b
12 changed files with 126 additions and 0 deletions

View file

@ -0,0 +1 @@
/etc/clouseau/clouseau.ini

View file

@ -0,0 +1,8 @@
Package: clouseau
Version: %VERSION%
Section: base
Priority: optional
Architecture: all
Depends: zulu-7
Maintainer: Thomas Legay <thomas@lgy.fr>
Description: clouseau

View file

@ -0,0 +1,5 @@
#!/bin/bash
id clouseau &> /dev/null || useradd clouseau -r -s /bin/false -d /var/lib/clouseau
chown -R clouseau:clouseau /var/lib/clouseau

View file

@ -0,0 +1,13 @@
[clouseau]
; the name of the Erlang node created by the service, leave this unchanged
name=clouseau@127.0.0.1
; set this to the same distributed Erlang cookie used by the CouchDB nodes
cookie=monster
; the path where you would like to store the search index files
dir=/var/lib/clouseau/
; the number of search indexes that can be open simultaneously
max_indexes_open=500

View file

@ -0,0 +1,4 @@
log4j.rootLogger=debug, CONSOLE
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=%d{ISO8601} %c [%p] %m%n

View file

@ -0,0 +1,12 @@
#!/bin/bash
/usr/lib/jvm/zulu-7-amd64/bin/java -server \
-Xmx2G \
-Dsun.net.inetaddr.ttl=30 \
-Dsun.net.inetaddr.negative.ttl=30 \
-Dlog4j.configuration=file:/etc/clouseau/log4j.properties \
-XX:OnOutOfMemoryError="kill -9 %p" \
-XX:+UseConcMarkSweepGC \
-XX:+CMSParallelRemarkEnabled \
-classpath '/opt/clouseau/*' \
com.cloudant.clouseau.Main \
/etc/clouseau/clouseau.ini

View file

@ -0,0 +1,12 @@
[Unit]
Description=clouseau
After=network.target
[Service]
ExecStart=/usr/bin/clouseau
Restart=always
User=clouseau
Group=clouseau
[Install]
WantedBy=multi-user.target