/[gentoo-x86]/net-misc/cbqinit/files/rc_cbqinit-r1
Gentoo

Contents of /net-misc/cbqinit/files/rc_cbqinit-r1

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Nov 15 00:47:32 2005 UTC (14 years, 3 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +13 -0 lines
Clean up ebuild, add a patch from Fedora, and add back in missing KEYWORDS along with arm love.
(Portage version: 2.0.53_rc7)

1 #!/sbin/runscript
2 # Copyright 1999-2005 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
4
5 depend() {
6 need net
7 }
8
9 checkconfig() {
10 if [ ! -d /etc/cbqinit ] ; then
11 eerror "You need to create some config files in /etc/cbqinit first"
12 eerror "Please read the README file"
13 return 1
14 fi
15
16 return 0
17 }
18
19 start() {
20 checkconfig || return 1
21 ebegin "Starting cbqinit"
22 /usr/sbin/cbqinit start
23 eend $?
24 }
25
26 stop() {
27 ebegin "Stopping cbqinit"
28 /usr/sbin/cbqinit stop
29 eend
30 }

  ViewVC Help
Powered by ViewVC 1.1.20