svn commit: r193112 - head/etc/rc.d

Dmitry Morozovsky marck at rinet.ru
Sun May 31 20:04:22 UTC 2009


On Sun, 31 May 2009, Doug Barton wrote:

DB> Dmitry Morozovsky wrote:
DB> > Doug,
DB> > 
DB> > On Sat, 30 May 2009, Doug Barton wrote:
DB> > 
DB> > DB> Author: dougb
DB> > DB> Date: Sat May 30 19:38:51 2009
DB> > DB> New Revision: 193112
DB> > DB> URL: http://svn.freebsd.org/changeset/base/193112
DB> > DB> 
DB> > DB> Log:
DB> > DB>   As previously advertised, remove this script prior to the 8.0 branch.
DB> > 
DB> > Was there an agreement what should one do with dumping to gmirror (see 
DB> > sbin/geom/class/mirror/gmirror.8) ?
DB> 
DB> I'm not familiar with that issue, but it sounds like something that
DB> needs its own rc.d script. If someone who knows what is supposed to
DB> happen wants to write something up and send it to the freebsd-rc@ list
DB> I'll be glad to help review it.

Something like (checks should be added, yeah)

#!/bin/sh
#
# $FreeBSD$
#

# BEFORE: savecore
# PROVIDE: gmirror-savecore
# KEYWORD: nojail

. /etc/rc.subr

name="gmirror_savecore"
start_cmd="gmsavecore_start"
stop_cmd=":"

gmsavecore_start()
{
        gmirror configure -b prefer /dev/dumpdev
}

load_rc_config $name
run_rc_command "$1"

possibly?

-- 
Sincerely,
D.Marck                                     [DM5020, MCK-RIPE, DM3-RIPN]
[ FreeBSD committer:                                 marck at FreeBSD.org ]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck at rinet.ru ***
------------------------------------------------------------------------


More information about the freebsd-rc mailing list