summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchim Gottinger <achim@gentoo.org>2001-04-26 03:55:58 +0000
committerAchim Gottinger <achim@gentoo.org>2001-04-26 03:55:58 +0000
commitbab421ffd662b286bbe6b4aed52eb7361e6e9832 (patch)
treee1a6d3dc3398df19ed81799b75dc398b4c22c7f1 /app-admin/gentool
parent*** empty log message *** (diff)
downloadhistorical-bab421ffd662b286bbe6b4aed52eb7361e6e9832.tar.gz
historical-bab421ffd662b286bbe6b4aed52eb7361e6e9832.tar.bz2
historical-bab421ffd662b286bbe6b4aed52eb7361e6e9832.zip
Various fixes
Diffstat (limited to 'app-admin/gentool')
-rwxr-xr-xapp-admin/gentool/files/gentool-run2
-rwxr-xr-xapp-admin/gentool/files/log-run2
-rwxr-xr-xapp-admin/gentool/files/svc-gentool1
-rw-r--r--app-admin/gentool/gentool-0.0.1.ebuild5
4 files changed, 8 insertions, 2 deletions
diff --git a/app-admin/gentool/files/gentool-run b/app-admin/gentool/files/gentool-run
index bd55f3b18c42..0ac2b2d9575f 100755
--- a/app-admin/gentool/files/gentool-run
+++ b/app-admin/gentool/files/gentool-run
@@ -1,2 +1,2 @@
#!/bin/sh
-exec /usr/sbin/gentool.py | /usr/bin/multilog t /var/log/gentool.d
+/usr/sbin/gentool.py 2>&1
diff --git a/app-admin/gentool/files/log-run b/app-admin/gentool/files/log-run
new file mode 100755
index 000000000000..20d27c21ac0c
--- /dev/null
+++ b/app-admin/gentool/files/log-run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec multilog t /var/log/gentool.d
diff --git a/app-admin/gentool/files/svc-gentool b/app-admin/gentool/files/svc-gentool
index 6059b086224f..806233fcea1a 100755
--- a/app-admin/gentool/files/svc-gentool
+++ b/app-admin/gentool/files/svc-gentool
@@ -17,6 +17,7 @@ stop() {
ebegin "Stopping supervised ${SERVICE}"
if [ -e ${SVCDIR}/control/${SERVICE} ]
then
+ /usr/bin/svc -dx ${SVCDIR}/control/${SERVICE}/log
/usr/bin/svc -dx ${SVCDIR}/control/${SERVICE}
rm ${SVCDIR}/control/${SERVICE}
fi
diff --git a/app-admin/gentool/gentool-0.0.1.ebuild b/app-admin/gentool/gentool-0.0.1.ebuild
index c0a8925903a6..3c7cf60bc2d2 100644
--- a/app-admin/gentool/gentool-0.0.1.ebuild
+++ b/app-admin/gentool/gentool-0.0.1.ebuild
@@ -1,7 +1,7 @@
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/app-admin/gentool/gentool-0.0.1.ebuild,v 1.2 2001/04/26 03:07:26 achim Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/gentool/gentool-0.0.1.ebuild,v 1.3 2001/04/26 03:55:58 achim Exp $
S=${WORKDIR}/${P}
DESCRIPTION="A stand alone webserver written in python actiong as a webinterface to portage"
@@ -17,6 +17,9 @@ src_install () {
doexe ${FILESDIR}/svc-gentool
exeinto /var/lib/supervise/services/gentool
newexe ${FILESDIR}/gentool-run run
+ exeinto /var/lib/supervise/services/gentool/log
+ newexe ${FILESDIR}/log-run run
dodir /var/log/gentool.d
+ chmod +t ${D}/var/lib/supervise/services/gentool
}