net-mail/mailman-web: Adding init script
Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
This commit is contained in:
parent
0b8dad6a69
commit
743080cc79
2 changed files with 19 additions and 0 deletions
net-mail/mailman-web
12
net-mail/mailman-web/files/mailman-web.initd
Normal file
12
net-mail/mailman-web/files/mailman-web.initd
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/sbin/openrc-run
|
||||
# Copyright 2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
description="mailman daemon"
|
||||
command=/usr/lib/python-exec/python3.11/gunicorn
|
||||
command_args="-c /etc/mailman3/gunicorn_config.py mailman_web.wsgi"
|
||||
command_user=mailman:mailman
|
||||
directory=/opt/mailman
|
||||
error_log=/var/log/mailman/"${RC_SVCNAME}".log
|
||||
output_log=/var/log/mailman/"${RC_SVCNAME}".log
|
||||
supervisor=supervise-daemon
|
|
@ -18,7 +18,14 @@ IUSE="mysql"
|
|||
RDEPEND="
|
||||
>=dev-python/django-4.0[${PYTHON_USEDEP}]
|
||||
<dev-python/django-4.3
|
||||
dev-python/psycopg:2[${PYTHON_USEDEP}]
|
||||
dev-python/whoosh[${PYTHON_USEDEP}]
|
||||
net-mail/HyperKitty[${PYTHON_USEDEP}]
|
||||
net-mail/postorius[${PYTHON_USEDEP}]
|
||||
www-servers/gunicorn[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
newinitd "${FILESDIR}"/${PN}.initd ${PN}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue