diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-02-27 06:29:02 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-02-27 06:29:02 +0000 |
commit | c7dcb497c1178d737f219f360cfb1396e26938af (patch) | |
tree | 24f6b16ff172ba74dd3412b0a14834edaf53d904 /sys-apps | |
parent | errno patch for #16396 (#16267) (diff) | |
download | historical-c7dcb497c1178d737f219f360cfb1396e26938af.tar.gz historical-c7dcb497c1178d737f219f360cfb1396e26938af.tar.bz2 historical-c7dcb497c1178d737f219f360cfb1396e26938af.zip |
errno patch for #16396 (#16267)
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/daemontools/daemontools-0.76-r3.ebuild | 4 | ||||
-rw-r--r-- | sys-apps/daemontools/files/svscan | 34 |
2 files changed, 36 insertions, 2 deletions
diff --git a/sys-apps/daemontools/daemontools-0.76-r3.ebuild b/sys-apps/daemontools/daemontools-0.76-r3.ebuild index b40506af4b1d..dc4a4d5d2631 100644 --- a/sys-apps/daemontools/daemontools-0.76-r3.ebuild +++ b/sys-apps/daemontools/daemontools-0.76-r3.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/daemontools/daemontools-0.76-r3.ebuild,v 1.1 2003/02/27 06:25:28 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/daemontools/daemontools-0.76-r3.ebuild,v 1.2 2003/02/27 06:29:02 vapier Exp $ inherit eutils @@ -49,5 +49,5 @@ src_install() { dodoc CHANGES ../package/README TODO exeinto /etc/init.d - doexe ${FILESDIR}/svscan svscan + doexe ${FILESDIR}/svscan } diff --git a/sys-apps/daemontools/files/svscan b/sys-apps/daemontools/files/svscan new file mode 100644 index 000000000000..72a106268848 --- /dev/null +++ b/sys-apps/daemontools/files/svscan @@ -0,0 +1,34 @@ +#!/sbin/runscript +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/sys-apps/daemontools/files/svscan,v 1.7 2003/02/27 06:25:28 vapier Exp $ + +depend() { + need net + after net + before ntpd + before spamd + before apache + before apache2 +} + +start() { + ebegin "Starting service scan..." + PATH="/usr/bin:$PATH" + start-stop-daemon --start --quiet --exec /usr/bin/svscan --pidfile /var/run/svscan.pid -- /service & + echo $! > /var/run/svscan.pid + eend $? +} + +stop() { + ebegin "Stopping service scan..." + start-stop-daemon --stop --quiet --pidfile /var/run/svscan.pid + eend $? + ebegin "Stopping services..." + svc -dx /service/* + eend $? + ebegin "Stopping service logging..." + svc -dx /service/*/log + eend $? +} + |