diff options
author | 2021-01-26 18:48:17 +0100 | |
---|---|---|
committer | 2021-01-26 18:48:35 +0100 | |
commit | ea533bd044e37a3b3cdac4117f39a9e3d7c03e56 (patch) | |
tree | 1e5f5bdb1c202465ef5612b9791488480f986732 /net-im/prosody/files | |
parent | net-im/prosody: fix checkconfig on slotted lua (diff) | |
download | gentoo-ea533bd044e37a3b3cdac4117f39a9e3d7c03e56.tar.gz gentoo-ea533bd044e37a3b3cdac4117f39a9e3d7c03e56.tar.bz2 gentoo-ea533bd044e37a3b3cdac4117f39a9e3d7c03e56.zip |
net-im/prosody: drop old version
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'net-im/prosody/files')
-rw-r--r-- | net-im/prosody/files/prosody.initd-r4 | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/net-im/prosody/files/prosody.initd-r4 b/net-im/prosody/files/prosody.initd-r4 deleted file mode 100644 index 1282e9dc4561..000000000000 --- a/net-im/prosody/files/prosody.initd-r4 +++ /dev/null @@ -1,43 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -name="Prosody XMPP server" -extra_started_commands="reload" -jabber_pid="/run/jabber" -jabber_logs="/var/log/jabber" -pidfile="${jabber_pid}/prosody.pid" -prosody_config="/etc/jabber/prosody.cfg.lua" - -command="/usr/bin/prosody" -command_group="jabber" -command_user="jabber" - -checkconfig() { - if [ ! -f "${prosody_config}" ]; then - eerror "Please create ${prosody_config} before starting Prosody!" - return 1 - fi - - luac -p "${prosody_config}" - return $? -} - -depend() { - need net - provide jabber-server - use dns postgresql -} - -reload() { - ebegin "Reloading configuration" - start-stop-daemon --signal HUP --pidfile "${pidfile}" - eend $? -} - -start_pre() { - checkconfig || return 1 - - checkpath -d -m 0750 -o "${command_user}:${command_group}" -q "${jabber_logs}" - checkpath -d -m 0750 -o "${command_user}:${command_group}" -q "${jabber_pid}" -} |