You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
505 B
31 lines
505 B
#!/sbin/openrc-run
|
|
# Copyright 1999-2016 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
|
|
}
|