aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-sound/logitechmediaserver-bin/files/logitechmediaserver.init.d')
-rwxr-xr-xmedia-sound/logitechmediaserver-bin/files/logitechmediaserver.init.d50
1 files changed, 0 insertions, 50 deletions
diff --git a/media-sound/logitechmediaserver-bin/files/logitechmediaserver.init.d b/media-sound/logitechmediaserver-bin/files/logitechmediaserver.init.d
deleted file mode 100755
index 284df12..0000000
--- a/media-sound/logitechmediaserver-bin/files/logitechmediaserver.init.d
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-# These fit the Logitech Media Server ebuild and so shouldn't need to be
-# changed; user-servicable parts go in /etc/conf.d/logitechmediaserver.
-lms=logitechmediaserver
-rundir=/var/run/${lms}
-logdir=/var/log/${lms}
-optdir=/opt/${lms}
-vardir=/var/lib/${lms}
-pidfile=${rundir}/${lms}.pid
-cachedir=${vardir}/cache
-prefsdir=/etc/${lms}
-lmsuser=${lms}
-lmsbin=${optdir}/slimserver.pl
-
-depend() {
- need net
-}
-
-start_pre() {
- checkpath -q -d -o ${lmsuser}:${lmsuser} -m 0770 "${rundir}"
-}
-
-start() {
- ebegin "Starting Logitech Media Server"
-
- cd /
- start-stop-daemon \
- --start --exec ${lmsbin} \
- --pidfile ${pidfile} \
- --user ${lmsuser} \
- --background \
- -- \
- --quiet \
- --pidfile=${pidfile} \
- --cachedir=${cachedir} \
- --prefsdir=${prefsdir} \
- --logdir=${logdir} \
- ${LMS_OPTS}
-
- eend $? "Failed to start Logitech Media Server"
-}
-
-stop() {
- ebegin "Stopping Logitech Media Server"
- start-stop-daemon --retry 10 --stop --pidfile ${pidfile}
- eend $? "Failed to stop Logitech Media Server"
-}