summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
Diffstat (limited to 'pcr')
-rw-r--r--pcr/yacy-openrc/PKGBUILD19
-rwxr-xr-xpcr/yacy-openrc/yacy29
-rw-r--r--pcr/yacy-openrc/yacy.install4
3 files changed, 0 insertions, 52 deletions
diff --git a/pcr/yacy-openrc/PKGBUILD b/pcr/yacy-openrc/PKGBUILD
deleted file mode 100644
index 627ceab50..000000000
--- a/pcr/yacy-openrc/PKGBUILD
+++ /dev/null
@@ -1,19 +0,0 @@
-# Maintainer: Bruno Cichoń <ebrasca.ebrasca@openmailbox.org>
-# Contributor: André Silva <emulatorman@hyperbola.info>
-
-pkgname=yacy-openrc
-pkgver=0.1.0
-pkgrel=1
-pkgdesc="OpenRC init script for YaCy"
-arch=('any')
-license=('GPL2')
-depends=('openrc' 'yacy')
-backup=('etc/init.d/yacy')
-install=yacy.install
-source=('yacy')
-md5sums=('98c064c816a9a05a324666e2aecd01bd')
-
-package() {
- install -dm755 $pkgdir/etc/init.d
- install -Dm755 $srcdir/yacy $pkgdir/etc/init.d
-} \ No newline at end of file
diff --git a/pcr/yacy-openrc/yacy b/pcr/yacy-openrc/yacy
deleted file mode 100755
index e70ea720a..000000000
--- a/pcr/yacy-openrc/yacy
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/openrc-run
-
-PIDFile=/opt/yacy/.yacy/yacy.pid
-User=yacy
-
-description="YaCy P2P Web Search"
-
-depend() {
- need net
-}
-
-start() {
- ebegin "Starting Yacy"
- start-stop-daemon --background --user "${User}" --start --pidfile "${PIDFILE}" --quiet --exec /opt/yacy/yacy start
- eend $?
-}
-
-stop() {
- ebegin "Stopping Yacy"
- start-stop-daemon --stop --pidfile "${PIDFILE}" --quiet --exec /opt/yacy/yacy stop
- eend $?
-}
-
-restart() {
- ebegin "Reloading Yacy."
- start-stop-daemon --stop --pidfile "${PIDFILE}" --quiet --exec /opt/yacy/yacy stop
- start-stop-daemon --background --user "${User}" --start --pidfile "${PIDFILE}" --quiet --exec /opt/yacy/yacy start
- eend $?
-}
diff --git a/pcr/yacy-openrc/yacy.install b/pcr/yacy-openrc/yacy.install
deleted file mode 100644
index d07129617..000000000
--- a/pcr/yacy-openrc/yacy.install
+++ /dev/null
@@ -1,4 +0,0 @@
-post_install() {
- echo " ==> /var/lib/yacy /opt/yacy needs these adjustments:"
- echo " chown -R yacy:yacy /var/lib/yacy /opt/yacy"
-}