Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Sep 2008 16:12:09 +0200
From:      Michel Talon <talon@lpthe.jussieu.fr>
To:        freebsd-questions@freebsd.org
Subject:   Re: File system corruption upon reboot with gmirror
Message-ID:  <20080911141209.GA21301@lpthe.jussieu.fr>

next in thread | raw e-mail | index | archive | help
Gunther Mayer wrote:

> > Don't use "reboot", use shutdown -r now. I also had the same problem
> > once
> > (had to get physical access to the box to fix it) and it was because
> > of
> > the "reboot".
> >   
> 
> Thanks. I guess I'll use shutdown -r now then in future. If it still 
> happens then I'll post again...

What's this stuff? shutdown -r is implemented using reboot.

if (doreboot) {
			execle(_PATH_REBOOT, "reboot", "-l", nosync, 
                         ^^^^^                ^^^^^^
				(char *)NULL, empty_environ);
			syslog(LOG_ERR, "shutdown: can't exec %s: %m.",
				_PATH_REBOOT);
			warn(_PATH_REBOOT);
		}




-- 

Michel TALON




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