diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-02-06 05:21:48 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-02-06 05:21:48 +0000 |
commit | 3c9867abc4fa6bd64b2b66d8325a67efb6295f24 (patch) | |
tree | 8cbc62f15cdeffc20e6c3acef4700c28cf47e4a1 /media-sound/mpd/files/mpd-0.21.4.init | |
parent | c0eef155123db1cf9e82a196e89b579c8fc8375c (diff) |
media-sound/mpd : use gentoo ebuild
Diffstat (limited to 'media-sound/mpd/files/mpd-0.21.4.init')
-rw-r--r-- | media-sound/mpd/files/mpd-0.21.4.init | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/media-sound/mpd/files/mpd-0.21.4.init b/media-sound/mpd/files/mpd-0.21.4.init deleted file mode 100644 index 72fede85..00000000 --- a/media-sound/mpd/files/mpd-0.21.4.init +++ /dev/null @@ -1,34 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -: CFGFILE=${CFGFILE:=/etc/mpd.conf} - -depend() { - need localmount - use net netmount nfsmount alsasound esound pulseaudio - config ${CFGFILE} -} - -get_config() { - x=$1 - test -e ${CFGFILE} || return 1 - sed -n \ - -e '/^[ \t]*'${x}'/{s:^[ \t]*'${x}'[ \t]\+"\?\([^#"]\+\)[^"]*"\?$:\1: ; p }' \ - ${CFGFILE} -} - -extra_started_commands='reload' -# Required by io_uring -rc_ulimit="-l 65535" -command=/usr/bin/mpd -command_args=${CFGFILE} -required_files=${CFGFILE} -pidfile=$(get_config pid_file) -description="Music Player Daemon" - -reload() { - ebegin "Reloading ${RC_SVCNAME}" - start-stop-daemon --pidfile ${pidfile} --signal HUP - eend $? - } |