public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Seifert" <soap@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/jabberd2/files/
Date: Wed, 18 Jan 2017 09:23:58 +0000 (UTC)	[thread overview]
Message-ID: <1484731162.d62531561cd3fb6f6e23ddac835b66381bed0624.soap@gentoo> (raw)

commit:     d62531561cd3fb6f6e23ddac835b66381bed0624
Author:     Michael Mair-Keimberger (asterix) <m.mairkeimberger <AT> gmail <DOT> com>
AuthorDate: Tue Jan 17 17:36:26 2017 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Wed Jan 18 09:19:22 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6253156

net-im/jabberd2: remove unused files

Closes: https://github.com/gentoo/gentoo/pull/3516

 net-im/jabberd2/files/jabberd2-2.3.1.init      | 82 --------------------------
 net-im/jabberd2/files/jabberd2-2.3.1.logrotate | 10 ----
 2 files changed, 92 deletions(-)

diff --git a/net-im/jabberd2/files/jabberd2-2.3.1.init b/net-im/jabberd2/files/jabberd2-2.3.1.init
deleted file mode 100644
index 4f885c7..00000000
--- a/net-im/jabberd2/files/jabberd2-2.3.1.init
+++ /dev/null
@@ -1,82 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-depend() {
-	need net
-	use mysql postgresql slapd
-	provide jabber-server
-}
-
-stopJabberServices() {
-
-	eindent
-	for pidfile in /var/run/jabber/*.pid; do
-		if [ -f "${pidfile}" ]; then
-			service=$(basename ${pidfile} .pid)
-			ebegin "Stopping ${service}"
-			start-stop-daemon \
-				--stop \
-				--pidfile ${pidfile}
-			eend $?
-		fi
-	done
-	eoutdent
-
-}
-
-start_pre() {
-	checkpath -d -o jabber /var/run/jabber
-}
-
-start() {
-
-	einfo "Starting Jabber Server ..."
-	local services executable cfgfile pidfile
-	services=$(grep -v ^# /etc/jabber/jabberd.cfg | grep '..*' | awk '{print $1 ":" $2}')
-	eindent
-	for service in ${services}; do
-
-		cfgfile=$(echo ${service} | cut -d ':' -f 2)
-		service=$(echo ${service} | cut -d ':' -f 1)
-		if [ ! -f "${cfgfile}" ]; then
-			if [ -f "/etc/jabber/${service}.xml" ]; then
-				cfgfile="/etc/jabber/${service}.xml"
-			else
-				eerror "Can't find: ${cfgfile} or default /etc/jabber/${service}.xml"
-				stopJabberServices
-				return 1
-			fi
-		fi
-
-		executable=/usr/bin/${service}
-
-		if [ ! -f "${executable}" ]; then
-			eerror "Can't find executable: ${executable}"
-			stopJabberServices
-			return 1
-		fi
-
-		ebegin "Starting ${service} (${cfgfile})"
-		pidfile="$(grep -v ^# ${cfgfile} | grep '<pidfile>' | sed 's#<.\?pidfile>##g')"
-		start-stop-daemon \
-			--background \
-			--start  \
-			--user jabber:jabber \
-			--exec /usr/bin/${service} \
-			--pid ${pidfile} \
-			-- -c ${cfgfile}
-		eend $?
-
-	done
-	eoutdent
-
-}
-
-stop() {
-
-	einfo "Stopping Jabber Server"
-	stopJabberServices
-
-}

diff --git a/net-im/jabberd2/files/jabberd2-2.3.1.logrotate b/net-im/jabberd2/files/jabberd2-2.3.1.logrotate
deleted file mode 100644
index 0ce1092..00000000
--- a/net-im/jabberd2/files/jabberd2-2.3.1.logrotate
+++ /dev/null
@@ -1,10 +0,0 @@
-/var/log/jabber/c2s.log /var/log/jabber/s2s.log /var/log/jabber/sm.log /var/log/jabber/router.log {
-	su jabber jabber
-	sharedscripts
-	postrotate
-	kill -HUP $(cat /var/run/jabberd/c2s.pid)
-	kill -HUP $(cat /var/run/jabberd/s2s.pid)
-	kill -HUP $(cat /var/run/jabberd/sm.pid)
-	kill -HUP $(cat /var/run/jabberd/router.pid)
-	endscript
-}


                 reply	other threads:[~2017-01-18  9:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1484731162.d62531561cd3fb6f6e23ddac835b66381bed0624.soap@gentoo \
    --to=soap@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox