summaryrefslogtreecommitdiff
path: root/pcr/yacy-openrc/yacy
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/yacy-openrc/yacy')
-rwxr-xr-xpcr/yacy-openrc/yacy29
1 files changed, 0 insertions, 29 deletions
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 $?
-}