diff options
Diffstat (limited to 'net-im/dendrite/files')
-rw-r--r-- | net-im/dendrite/files/dendrite-monolith.confd | 3 | ||||
-rw-r--r-- | net-im/dendrite/files/dendrite-monolith.initd | 28 | ||||
-rw-r--r-- | net-im/dendrite/files/dendrite-monolith.service | 17 | ||||
-rw-r--r-- | net-im/dendrite/files/dendrite.confd | 5 | ||||
-rw-r--r-- | net-im/dendrite/files/dendrite.initd | 27 | ||||
-rw-r--r-- | net-im/dendrite/files/dendrite.service | 17 |
6 files changed, 0 insertions, 97 deletions
diff --git a/net-im/dendrite/files/dendrite-monolith.confd b/net-im/dendrite/files/dendrite-monolith.confd deleted file mode 100644 index 8c09541..0000000 --- a/net-im/dendrite/files/dendrite-monolith.confd +++ /dev/null @@ -1,3 +0,0 @@ -# extra arguments for dendrite monolith - -EXTRA_ARGS="" diff --git a/net-im/dendrite/files/dendrite-monolith.initd b/net-im/dendrite/files/dendrite-monolith.initd deleted file mode 100644 index 52dba9e..0000000 --- a/net-im/dendrite/files/dendrite-monolith.initd +++ /dev/null @@ -1,28 +0,0 @@ -#!/sbin/openrc-run -# Copyright 2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -name="dendrite-monolith daemon" -description="Dendrite (Matrix Homeserver)" -command=/usr/bin/dendrite-monolith-server -command_args="--config /etc/dendrite/dendrite.monolith.yaml ${EXTRA_ARGS}" -pidfile="/run/dendrite-monolith.pid" -command_background="yes" -command_user="dendrite:dendrite" -directory="/var/lib/dendrite" -output_log="/var/log/dendrite/dendrite.log" -error_log="/var/log/dendrite/dendrite.log" - -depend() { - need net -} - -start_pre() { - _pem="/var/lib/dendrite/matrix_key.pem" - if [[ ! -e "${_pem}" ]]; then - /usr/bin/generate-keys --private-key "${_pem}" - chown dendrite:dendrite "${_pem}" - chmod 600 "${_pem}" - fi - ulimit -n 65535 -} diff --git a/net-im/dendrite/files/dendrite-monolith.service b/net-im/dendrite/files/dendrite-monolith.service deleted file mode 100644 index 55c1d6f..0000000 --- a/net-im/dendrite/files/dendrite-monolith.service +++ /dev/null @@ -1,17 +0,0 @@ -[Unit] -Description=Dendrite (Matrix Homeserver) -After=syslog.target -After=network.target - -[Service] -RestartSec=2s -Type=simple -User=dendrite -Group=dendrite -WorkingDirectory=/var/lib/dendrite/ -ExecStart=/usr/bin/dendrite-monolith-server -Restart=always -LimitNOFILE=65535 - -[Install] -WantedBy=multi-user.target diff --git a/net-im/dendrite/files/dendrite.confd b/net-im/dendrite/files/dendrite.confd deleted file mode 100644 index 0c4a069..0000000 --- a/net-im/dendrite/files/dendrite.confd +++ /dev/null @@ -1,5 +0,0 @@ -# extra arguments for dendrite - -EXTRA_ARGS="" - -rc_ulimit="-n 65535" diff --git a/net-im/dendrite/files/dendrite.initd b/net-im/dendrite/files/dendrite.initd deleted file mode 100644 index ee210a2..0000000 --- a/net-im/dendrite/files/dendrite.initd +++ /dev/null @@ -1,27 +0,0 @@ -#!/sbin/openrc-run -# Copyright 2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -name="dendrite daemon" -description="Dendrite (Matrix Homeserver)" -command=/usr/bin/dendrite -command_args="--config /etc/dendrite/dendrite.yaml ${EXTRA_ARGS}" -pidfile="/run/dendrite.pid" -command_background="yes" -command_user="dendrite:dendrite" -directory="/var/lib/dendrite" -output_log="/var/log/dendrite/dendrite.log" -error_log="/var/log/dendrite/dendrite.log" - -depend() { - need net -} - -start_pre() { - _pem="/var/lib/dendrite/matrix_key.pem" - if [ ! -e "${_pem}" ]; then - /usr/bin/generate-keys --private-key "${_pem}" - chown dendrite:dendrite "${_pem}" - chmod 600 "${_pem}" - fi -} diff --git a/net-im/dendrite/files/dendrite.service b/net-im/dendrite/files/dendrite.service deleted file mode 100644 index 0b7a1da..0000000 --- a/net-im/dendrite/files/dendrite.service +++ /dev/null @@ -1,17 +0,0 @@ -[Unit] -Description=Dendrite (Matrix Homeserver) -After=syslog.target -After=network.target - -[Service] -RestartSec=2s -Type=simple -User=dendrite -Group=dendrite -WorkingDirectory=/var/lib/dendrite/ -ExecStart=/usr/bin/dendrite -Restart=always -LimitNOFILE=65535 - -[Install] -WantedBy=multi-user.target |