app-i18n/canna: remove unused init/confd files

Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
This commit is contained in:
Michael Mair-Keimberger (asterix)
2016-08-11 10:07:58 +02:00
committed by Patrice Clement
parent 56336fbade
commit d1e8bd79d7
2 changed files with 0 additions and 45 deletions
-8
View File
@@ -1,8 +0,0 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
# Config file for /etc/init.d/canna
# Specify user to run as
CANNASERVER_OPTS=""
-37
View File
@@ -1,37 +0,0 @@
#!/sbin/openrc-run
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
# CANNASERVER_OPTS is defined in /etc/conf.d/canna
depend() {
after logger
}
start() {
if [ -S /tmp/.iroha_unix/IROHA ] ; then
/usr/sbin/cannakill >/dev/null 2>&1
fi
rm -f /tmp/.iroha_unix/IROHA
if [ "${CANNASERVER_OPTS}" = "${CANNASERVER_OPTS/-syslog/}" ] ; then
if [ ! -f /var/log/canna/CANNA0msgs ] ; then
touch /var/log/canna/CANNA0msgs
fi
if [ "${CANNASERVER_OPTS}" != "${CANNASERVER_OPTS/-u/}" ] ; then
chown `echo ${CANNASERVER_OPTS} | sed -e 's/.*-u *\(\w*\).*/\1/'` /var/log/canna/CANNA0msgs
fi
chmod u+w /var/log/canna/CANNA0msgs
fi
ebegin "Starting canna"
/usr/sbin/cannaserver ${CANNASERVER_OPTS}
eend $? "Failed to start canna"
}
stop() {
ebegin "Stopping canna"
/usr/sbin/cannakill
eend $? "Failed to stop canna"
}