diff options
author | Andrej Kacian <ticho@gentoo.org> | 2005-03-13 16:26:45 +0000 |
---|---|---|
committer | Andrej Kacian <ticho@gentoo.org> | 2005-03-13 16:26:45 +0000 |
commit | 8ae3f584958617a7f9df80937ca0bf7265bbaad7 (patch) | |
tree | c6eda5354bcba0c7bd0072f051ee5fd7c82a7660 | |
parent | stable on x86 (diff) | |
download | historical-8ae3f584958617a7f9df80937ca0bf7265bbaad7.tar.gz historical-8ae3f584958617a7f9df80937ca0bf7265bbaad7.tar.bz2 historical-8ae3f584958617a7f9df80937ca0bf7265bbaad7.zip |
Fixed pidfile location in initscript.
Package-Manager: portage-2.0.51.19
-rw-r--r-- | media-sound/mpd-svn/ChangeLog | 5 | ||||
-rwxr-xr-x | media-sound/mpd-svn/files/mpd.pidfile.rc6 | 12 |
2 files changed, 8 insertions, 9 deletions
diff --git a/media-sound/mpd-svn/ChangeLog b/media-sound/mpd-svn/ChangeLog index 5f5fbfaf97b3..29b07f1145e4 100644 --- a/media-sound/mpd-svn/ChangeLog +++ b/media-sound/mpd-svn/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for media-sound/mpd-svn # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/mpd-svn/ChangeLog,v 1.6 2005/03/13 12:03:11 ticho Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/mpd-svn/ChangeLog,v 1.7 2005/03/13 16:26:45 ticho Exp $ + + 13 Mar 2005; Andrej Kacian <ticho@gentoo.org> files/mpd.pidfile.rc6: + Fixed pidfile location in initscript. *mpd-svn-20050312 (13 Mar 2005) diff --git a/media-sound/mpd-svn/files/mpd.pidfile.rc6 b/media-sound/mpd-svn/files/mpd.pidfile.rc6 index ee011c65d6c8..3e50c7e2280b 100755 --- a/media-sound/mpd-svn/files/mpd.pidfile.rc6 +++ b/media-sound/mpd-svn/files/mpd.pidfile.rc6 @@ -1,7 +1,9 @@ #!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/mpd-svn/files/mpd.pidfile.rc6,v 1.1 2005/03/13 12:03:11 ticho Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/mpd-svn/files/mpd.pidfile.rc6,v 1.2 2005/03/13 16:26:45 ticho Exp $ + +pidfile="/var/run/mpd/mpd.pid" depend() { need localmount @@ -13,12 +15,6 @@ checkconfig() { return 1 fi - if ! [ -f /var/run/mpd.pid ]; then - touch /var/run/mpd.pid - chmod 750 /var/run/mpd.pid - chown mpd /var/run/mpd.pid - fi - return 0 } @@ -32,6 +28,6 @@ start() { stop() { ebegin "Stopping Music Player Daemon" - start-stop-daemon --stop --pidfile /var/run/mpd.pid + start-stop-daemon --stop --pidfile ${pidfile} eend $? } |