diff options
Diffstat (limited to 'net-misc/cbqinit/files/rc_cbqinit-r1')
-rw-r--r-- | net-misc/cbqinit/files/rc_cbqinit-r1 | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/net-misc/cbqinit/files/rc_cbqinit-r1 b/net-misc/cbqinit/files/rc_cbqinit-r1 new file mode 100644 index 000000000000..b6ffad898e87 --- /dev/null +++ b/net-misc/cbqinit/files/rc_cbqinit-r1 @@ -0,0 +1,30 @@ +#!/sbin/runscript +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need net +} + +checkconfig() { + if [ ! -d /etc/cbqinit ] ; then + eerror "You need to create some config files in /etc/cbqinit first" + eerror "Please read the README file" + return 1 + fi + + return 0 +} + +start() { + checkconfig || return 1 + ebegin "Starting cbqinit" + /usr/sbin/cbqinit start + eend $? +} + +stop() { + ebegin "Stopping cbqinit" + /usr/sbin/cbqinit stop + eend +} |