Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 May 2009 23:46:39 +0400 (MSD)
From:      Dmitry Morozovsky <marck@rinet.ru>
To:        Doug Barton <dougb@freebsd.org>
Cc:        Pawel Jakub Dawidek <pjd@freebsd.org>, freebsd-rc@freebsd.org
Subject:   Re: svn commit: r193112 - head/etc/rc.d
Message-ID:  <alpine.BSF.2.00.0905312343510.19894@woozle.rinet.ru>
In-Reply-To: <4A22CFA1.3050408@FreeBSD.org>
References:  <200905301938.n4UJcpbF017191@svn.freebsd.org> <alpine.BSF.2.00.0905311419080.30849@woozle.rinet.ru> <4A22CFA1.3050408@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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@FreeBSD.org ]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru ***
------------------------------------------------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.0905312343510.19894>