From 5e34baec55f63841e81260e24dd3e81e5a18e6ee Mon Sep 17 00:00:00 2001 From: Alon Bar-Lev Date: Sun, 23 Sep 2018 22:04:28 +0300 Subject: dev-libs/openct: remove unused file Package-Manager: Portage-2.3.49, Repoman-2.3.10 --- dev-libs/openct/files/openct.initd | 31 +++++++++++++++++++++++++++++++ dev-libs/openct/files/openct.rc | 29 ----------------------------- dev-libs/openct/files/openct.rc.2 | 31 ------------------------------- 3 files changed, 31 insertions(+), 60 deletions(-) create mode 100644 dev-libs/openct/files/openct.initd delete mode 100644 dev-libs/openct/files/openct.rc delete mode 100644 dev-libs/openct/files/openct.rc.2 (limited to 'dev-libs/openct/files') diff --git a/dev-libs/openct/files/openct.initd b/dev-libs/openct/files/openct.initd new file mode 100644 index 000000000000..79f2336f3ea1 --- /dev/null +++ b/dev-libs/openct/files/openct.initd @@ -0,0 +1,31 @@ +#!/sbin/openrc-run +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need localmount +} + +checkconfig() { + if [ ! -e /etc/openct.conf ] ; then + eerror "You need an /etc/openct.conf file to run OpenCT" + return 1 + fi + return 0 +} + +start() { + checkconfig || return 1 + + checkpath -d -m 0750 -o openctd:openct /var/run/openct + + ebegin "Starting OpenCT" + /usr/sbin/openct-control init + eend $? +} + +stop() { + ebegin "Stopping OpenCT" + /usr/sbin/openct-control shutdown + eend $? +} diff --git a/dev-libs/openct/files/openct.rc b/dev-libs/openct/files/openct.rc deleted file mode 100644 index b3ff33e974eb..000000000000 --- a/dev-libs/openct/files/openct.rc +++ /dev/null @@ -1,29 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -depend() { - need localmount -} - -checkconfig() { - if [ ! -e /etc/openct.conf ] ; then - eerror "You need an /etc/openct.conf file to run OpenCT" - return 1 - fi - return 0 -} - -start() { - checkconfig || return 1 - - ebegin "Starting OpenCT" - /usr/sbin/openct-control init - eend $? -} - -stop() { - ebegin "Stopping OpenCT" - /usr/sbin/openct-control shutdown - eend $? -} diff --git a/dev-libs/openct/files/openct.rc.2 b/dev-libs/openct/files/openct.rc.2 deleted file mode 100644 index d07cc6116262..000000000000 --- a/dev-libs/openct/files/openct.rc.2 +++ /dev/null @@ -1,31 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -depend() { - need localmount -} - -checkconfig() { - if [ ! -e /etc/openct.conf ] ; then - eerror "You need an /etc/openct.conf file to run OpenCT" - return 1 - fi - return 0 -} - -start() { - checkconfig || return 1 - - checkpath -d -m 0750 -o openctd:openct /var/run/openct - - ebegin "Starting OpenCT" - /usr/sbin/openct-control init - eend $? -} - -stop() { - ebegin "Stopping OpenCT" - /usr/sbin/openct-control shutdown - eend $? -} -- cgit v1.2.3-65-gdbad