diff options
author | Daniel Drake <dsd@gentoo.org> | 2006-09-06 14:31:17 +0000 |
---|---|---|
committer | Daniel Drake <dsd@gentoo.org> | 2006-09-06 14:31:17 +0000 |
commit | 8ecb7d7840814e3f11de9c93a9ee8383164034f5 (patch) | |
tree | 83f1d313cd7ec9eba590ac47a79f0d094af8db87 /www-servers/thttpd/files | |
parent | Version bump. (diff) | |
download | gentoo-2-8ecb7d7840814e3f11de9c93a9ee8383164034f5.tar.gz gentoo-2-8ecb7d7840814e3f11de9c93a9ee8383164034f5.tar.bz2 gentoo-2-8ecb7d7840814e3f11de9c93a9ee8383164034f5.zip |
Fix init script to change into configured directory before starting, reported by Laurence Withers in bug #142047
(Portage version: 2.1.1_rc1-r4)
Diffstat (limited to 'www-servers/thttpd/files')
-rw-r--r-- | www-servers/thttpd/files/digest-thttpd-2.25b-r5 | 3 | ||||
-rw-r--r-- | www-servers/thttpd/files/thttpd-2.25/thttpd.init | 9 |
2 files changed, 6 insertions, 6 deletions
diff --git a/www-servers/thttpd/files/digest-thttpd-2.25b-r5 b/www-servers/thttpd/files/digest-thttpd-2.25b-r5 new file mode 100644 index 000000000000..f7daceb58ecf --- /dev/null +++ b/www-servers/thttpd/files/digest-thttpd-2.25b-r5 @@ -0,0 +1,3 @@ +MD5 a0e9cd87455d3a0ea11e5ea7e947adf6 thttpd-2.25b.tar.gz 132363 +RMD160 15020e8d04d27b30c4da3104387a281e35d58025 thttpd-2.25b.tar.gz 132363 +SHA256 4ceaa30ef55702d5cfdffdccd3a2dee8d3090e852c18c7ce8d17d692ad0bf024 thttpd-2.25b.tar.gz 132363 diff --git a/www-servers/thttpd/files/thttpd-2.25/thttpd.init b/www-servers/thttpd/files/thttpd-2.25/thttpd.init index 9adec9c797a6..0821887c3b21 100644 --- a/www-servers/thttpd/files/thttpd-2.25/thttpd.init +++ b/www-servers/thttpd/files/thttpd-2.25/thttpd.init @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License, v2 or later -# $Header: /var/cvsroot/gentoo-x86/www-servers/thttpd/files/thttpd-2.25/thttpd.init,v 1.1 2004/08/08 18:34:03 stuart Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-servers/thttpd/files/thttpd-2.25/thttpd.init,v 1.2 2006/09/06 14:31:17 dsd Exp $ depend() { need net @@ -13,12 +13,9 @@ start() { eend 1 "THTTPD_DOCROOT not set correctly in /etc/conf.d/thttpd" exit 1 fi - cd $THTTPD_DOCROOT - if [ $? -ne 0 ]; then - eend $? "ERROR: cannot change to docroot \"$THTTPD_DOCROOT\"" - fi start-stop-daemon --quiet --start --startas /usr/sbin/thttpd \ - --pidfile /var/run/thttpd.pid -- ${THTTPD_OPTS} + --pidfile /var/run/thttpd.pid --chdir "$THTTPD_DOCROOT" -- \ + ${THTTPD_OPTS} eend $? } |