www-apps/documize: new package
This commit is contained in:
parent
f23d544e60
commit
277f333b68
7 changed files with 164 additions and 0 deletions
4
www-apps/documize/files/app.ini
Normal file
4
www-apps/documize/files/app.ini
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
[log]
|
||||
MODE = file
|
||||
LEVEL = Info
|
||||
ROOT_PATH = /var/log/gitea
|
||||
14
www-apps/documize/files/documize.confd
Normal file
14
www-apps/documize/files/documize.confd
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# Basic settings
|
||||
DOCUMIZEPORT=5001
|
||||
|
||||
# Security settings
|
||||
DOCUMIZESALT=
|
||||
|
||||
# Database settings
|
||||
DOCUMIZEDBTYPE=mariadb
|
||||
DOCUMIZEDB=documize:password@/documize
|
||||
|
||||
# Configuration for embeded SSL
|
||||
#DOCUMIZEFORCESSLPORT=
|
||||
#DOCUMIZECERT=
|
||||
#DOCUMIZEKEY=
|
||||
30
www-apps/documize/files/documize.initd
Normal file
30
www-apps/documize/files/documize.initd
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
#!/sbin/openrc-run
|
||||
# Copyright 2016-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
description="Open source Confluence alternative"
|
||||
pidfile=${pidfile:-"/run/${SVCNAME}/${SVCNAME}.pid"}
|
||||
user=${user:-nobody}
|
||||
group=${group:-nogroup}
|
||||
|
||||
command="/usr/bin/documize"
|
||||
command_background="true"
|
||||
start_stop_daemon_args="--user ${user} --group ${group} \
|
||||
-e DOCUMIZEPORT=${DOCUMIZEPORT} \
|
||||
-e DOCUMIZEFORCESSLPORT=${DOCUMIZEFORCESSLPORT} \
|
||||
-e DOCUMIZECERT=${DOCUMIZECERT} \
|
||||
-e DOCUMIZEKEY=${DOCUMIZEKEY} \
|
||||
-e DOCUMIZESALT=${DOCUMIZESALT} \
|
||||
-e DOCUMIZEDB=${DOCUMIZEDB} \
|
||||
-e DOCUMIZEDBTYPE=${DOCUMIZEDBTYPE} \
|
||||
--stdout /var/log/${SVCNAME}/${SVCNAME}.log \
|
||||
--stderr /var/log/${SVCNAME}/${SVCNAME}.log"
|
||||
|
||||
depend() {
|
||||
need net
|
||||
after net mysql
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
checkpath -d -m 0755 -o "${user}":"${group}" "${pidfile%/*}"
|
||||
}
|
||||
27
www-apps/documize/files/documize.service
Normal file
27
www-apps/documize/files/documize.service
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
[Unit]
|
||||
Description=Open source Confluence alternative
|
||||
Documentation=https://www.documize.com/
|
||||
|
||||
AssertPathIsDirectory=/var/lib/documize
|
||||
AssertPathIsReadWrite=/var/lib/documize
|
||||
|
||||
After=network.target
|
||||
Requires=network.target
|
||||
After=mysqld.service
|
||||
After=postgresql.service
|
||||
After=memcached.service
|
||||
After=redis.service
|
||||
|
||||
[Service]
|
||||
User=nobody
|
||||
Group=nogroup
|
||||
|
||||
WorkingDirectory=/var/lib/documize
|
||||
ExecStart=/usr/bin/documize
|
||||
|
||||
Restart=always
|
||||
PrivateTmp=true
|
||||
Nice=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue