Mon Nov 1 14:41:11 2010 UTC ()
add a cgd_stop function


(christos)
diff -r1.7 -r1.8 src/etc/rc.d/cgd

cvs diff -r1.7 -r1.8 src/etc/rc.d/cgd (expand / switch to unified diff)

--- src/etc/rc.d/cgd 2009/09/11 18:18:03 1.7
+++ src/etc/rc.d/cgd 2010/11/01 14:41:11 1.8
@@ -1,27 +1,35 @@ @@ -1,27 +1,35 @@
1#!/bin/sh 1#!/bin/sh
2# 2#
3# $NetBSD: cgd,v 1.7 2009/09/11 18:18:03 apb Exp $ 3# $NetBSD: cgd,v 1.8 2010/11/01 14:41:11 christos Exp $
4# 4#
5 5
6# PROVIDE: cgd 6# PROVIDE: cgd
7# REQUIRE: rndctl 7# REQUIRE: rndctl
8# BEFORE: DISKS 8# BEFORE: DISKS
9# KEYWORD: interactive 9# KEYWORD: interactive
10 10
11$_rc_subr_loaded . /etc/rc.subr 11$_rc_subr_loaded . /etc/rc.subr
12 12
13name="cgd" 13name="cgd"
14rcvar=$name 14rcvar=$name
15start_cmd="cgd_start" 15start_cmd="cgd_start"
16stop_cmd=":" 16stop_cmd=":"
17 17
18cgd_start() 18cgd_start()
19{ 19{
20 if [ -f /etc/cgd/cgd.conf ]; then 20 if [ -f /etc/cgd/cgd.conf ]; then
21 print_rc_normal "Configuring CGD devices." 21 print_rc_normal "Configuring CGD devices."
22 cgdconfig -C 22 cgdconfig -C
23 fi 23 fi
24} 24}
25 25
 26cgd_stop()
 27{
 28 if [ -f /etc/cgd/cgd.conf ]; then
 29 print_rc_normal "Unconfiguring CGD devices."
 30 cgdconfig -U
 31 fi
 32}
 33
26load_rc_config $name 34load_rc_config $name
27run_rc_command "$1" 35run_rc_command "$1"