head	1.4;
access;
symbols;
locks; strict;
comment	@# @;


1.4
date	2012.11.17.01.49.06;	author svnexp;	state Exp;
branches;
next	1.3;

1.3
date	2012.09.11.05.04.59;	author obrien;	state Exp;
branches;
next	1.2;

1.2
date	2012.02.12.07.45.48;	author ed;	state Exp;
branches;
next	1.1;

1.1
date	2012.02.11.20.47.16;	author ed;	state Exp;
branches;
next	;


desc
@@


1.4
log
@Switching exporter and resync
@
text
@#!/bin/sh
#
# $FreeBSD: head/etc/rc.d/utx 240336 2012-09-11 05:04:59Z obrien $
#

# PROVIDE: utx
# REQUIRE: DAEMON FILESYSTEMS
# KEYWORD: shutdown

. /etc/rc.subr

name="utx"
start_cmd="utx boot"
stop_cmd="utx shutdown"

load_rc_config $name
run_rc_command "$1"
@


1.3
log
@SVN rev 240336 on 2012-09-11 05:04:59Z by obrien

Simply things so that "#REQUIRE: FILESYSTEMS" means the file
systems are fully "ready to go".

'FILESYSTEMS' states: "This is a dummy dependency, for services which
require file systems to be mounted before starting."  However, we have
'var' which is was run after 'FILESYSTEMS' and can mount /var if it
already isn't mounted.  Furthermore, several scripts cannot use /var
until 'cleanvar' has done its thing.  Thus "FILESYSTEMS" hasn't really
meant all critical file systems are fully usable.
@
text
@d3 1
a3 1
# $FreeBSD$
@


1.2
log
@SVN rev 231549 on 2012-02-12 07:45:48Z by ed

Avoid using BEFORE in the utx rc script.

Requested by:	dougb
@
text
@d7 1
a7 1
# REQUIRE: DAEMON cleanvar
@


1.1
log
@SVN rev 231534 on 2012-02-11 20:47:16Z by ed

Move utmpx handling out of init(8).

This has the following advantages:

- During boot, the BOOT_TIME record is now written right after the file
  systems become writable, but before users are allowed to log in. This
  means that they can't cause `hidden logins' by logging in right before
  init(8) kicks in.

- The pututxline(3) function may potentially block on file locking,
  though this is very rare to occur. By placing it in an rc script, the
  user can still kill it with ^C if needed.

- Most importantly: jails don't use init(8). This means that a force
  reboot of a system running jails will leave stale entries in the
  accounting database of the jails individually.
@
text
@a7 1
# BEFORE:  LOGIN
@

