summaryrefslogtreecommitdiffstats
path: root/sbin/init
Commit message (Collapse)AuthorAgeFilesLines
* Don't assume sigset_t and int are equivalent.jraynard1998-03-021-2/+2
|
* Removed definition of _NEW_VFSCONF. The new vfsconf interface is nowbde1998-01-201-2/+2
| | | | the default.
* This has always bugged me. At single user, the implied example it givespeter1997-10-101-2/+2
| | | | | | is not valid - it says that "sh" is the default, but you can't actually type "sh" at this prompt - it has to be /bin/sh or some other full pathname.
* ".if exists(${CURDIR}/../../secure)" rather than testing relative to thedavidn1997-08-181-2/+2
| | | | object directory.
* Test that rc.shutdown exists before attempting to run it - silentlydavidn1997-08-181-1/+13
| | | | return success if it doesn't to prevent any unwanted error msgs.
* runshutdown(): get rid of getdtablesize loop, it gains nothing nowache1997-08-061-4/+1
| | | | but can waste time if many descriptors are available
* rc.shutdown fixes:ache1997-08-061-12/+12
| | | | | | 1) revoke -> HUP 2) controlling terminal already present 3) add missing setprocresources call
* Add /etc/rc.shutdown capability to init.davidn1997-08-023-18/+171
| | | | | Add sample /etc/rc.shutdown (which is just a shell for now). Submitted by: Ollivier Robert <roberto@keltia.freenix.fr>
* Move logwtmp(shutdown) call before any real action in death().ache1997-07-081-4/+4
|
* 1. Replace malloc+bzero by callocache1997-07-051-28/+5
| | | | 2. Revoke internal active session list only now, not whole /etc/ttys
* Add -D_NEW_VFSCONF to eliminate compilation warningache1997-07-051-2/+2
|
* death: revoke all lines listed in /etc/ttys instead of sending HUPache1997-07-041-3/+27
| | | | to all processes
* Include <libutil.h> instead of private declarationsache1997-07-031-8/+2
|
* Remove unneded cast in login_getclassbyname which cause warningache1997-07-021-2/+2
|
* Attempt to open the device for reading before actually adding the devicepst1997-06-281-1/+14
| | | | | | | | | to the session list. If the device comes back as unconfigured, just ignore that line in /etc/ttys. If someone HUP's init, we'll try again. This change stops getty's from hanging on vty and sio ports that don't exist, either due to LKM drivers not being loaded, or probes failing. Reviewed by: bde
* Use err(3).charnier1997-06-131-8/+7
|
* Be more specific as to which flags may not be turned off when thempp1997-04-011-2/+3
| | | | | | system is running in secure mode. Obtained from: NetBSD PR# 3299
* Fix mount call for devfs.phk1997-03-301-2/+1
| | | | Submitted by: bde
* Revert $FreeBSD$ to $Id$peter1997-02-222-2/+2
|
* Protect from stack overrun via /etc/ttys, which could possibly allow adg1997-02-191-2/+2
| | | | | root user to change the securelevel. Pointed out by Thomas H. Ptacek <tqbf@enteract.com>.
* Part two of a "fix-and-move". There were some macros declared in ../sbin'smarkm1997-02-101-0/+16
| | | | | | | Makefile that were a) broken and b) bogusly placed. This brings the repeared macros in. Pointed-out-by: BDE
* typoadam1997-01-221-1/+1
|
* Style police.davidn1997-01-221-13/+14
|
* Impose login_cap resource limits on processes started by init.davidn1997-01-192-1/+32
| | | | | | | | /etc/rc started with "daemon" settings. "window=" started with "default" settings gettys started with "default" settings. This should open the way to junk kernel options MAX_{OPEN,CHILD} and the corresponding sysctl vars.
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-142-2/+2
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Sort cross references.wosch1997-01-131-2/+3
|
* If passed the -d flag, mount devfs on /devphk1996-10-281-1/+12
|
* Rewrote the section about the "normal" setting of the security level tobde1996-10-121-15/+16
| | | | | | | match reality. Say that secured devices `may not be opened for writing' instead of `are read-only'.
* Fixed DPADD.bde1996-09-051-5/+5
|
* Better method of choosing libdescrypt/libscrypt.markm1996-05-041-6/+6
|
* Correct some man page xrefs, and some other minor changes to bring somempp1996-04-081-17/+17
| | | | | | man pages up to mdoc guidelines and fix some minor formatting glitches. Also fixed a number of man pages to not abuse the .Xr macro to display functions and path names and a lot of other junk.
* The DES-based init(8) belongs to the "des" distribution.joerg1996-02-131-1/+2
|
* If root does not have a password, `init' should not ask to enter it.dima1995-11-101-1/+1
| | | | | otherwise it's not possible to get into single-user mode, if root does not have password and console insecure.
* Define TRUE & FALSE rather than depending on bogus #includes.phk1995-10-291-0/+3
|
* Fix $Id$.bde1995-10-031-1/+1
|
* Make this make work the same way as passwd and xntpd. Here it will allowmarkm1995-10-011-0/+7
| | | | secure/sbin/init to be cleaned out, and sbin/Makefile to be tidied up.
* Fix init to correctly detect processes that are exiting multiplempp1995-08-081-1/+1
| | | | times per second.
* nspace count was incremented only in child, so warning never displayedache1995-08-081-9/+13
| | | | Pointed by: Mike Pritchard <mpp@mpp.minn.net>
* Remove trailing whitespace.rgrimes1995-05-301-9/+9
|
* Add better argument handlingache1995-01-101-3/+41
| | | | Submitted by: jmz
* revision 1.6ache1994-10-141-10/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | date: 1994/03/06 08:55:02; author: ache; state: Exp; lines: +4 -1 Stop count getty spacing problem, if we issue kill -1 1 ---------------------------- revision 1.5 date: 1994/03/04 17:51:39; author: ache; state: Exp; lines: +9 -2 I got a lot of "getty repeating too quickly on port %s, sleeping" from init.bsdi, it means that getty start and exit in five seconds. This is common situation for poor quality Russian phone lines: modem got CONNECT message and after retries got NO CARRIER. So I introduce spacing count, it means that this warning and sleep occurse only after GETTY_NSPACE times of sequental attempts. ---------------------------- revision 1.4 date: 1994/02/28 21:53:52; author: ache; state: Exp; lines: +71 -10 I found (and fix) ugly bugs in init.bsdi (this bugs not present in old init) 1) Init don't setup TERM environment variable for default terminal type from /etc/ttys before calling getty/window. 2) When "kill -1 1" issued, init don't restart getty when /etc/ttys parameters was changed (it only kill "off" end empty entries). 3) Small memory leak if "window" /etc/ttys parameter specified and "kill -1 1" issued. Obtained from: FreeBSD 1.x
* What cretin named both a global and a function "reboot"? Globaljkh1994-08-281-3/+3
| | | | | changed to Reboot. Submitted by: jkh
* Bring in my changes from the 1.1 init.bsdi which causes a reboot (was anate1994-08-272-2/+24
| | | | | halt before) if init is sent an interrupt signal. This is necessary for <CTL><ALT><DEL> to do the right thing if enabled.
* Nuked the 2 second DTR wait; this is handled correctly in the sio driver.dg1994-08-231-1/+0
|
* `init' needs crypt() for insecure consoles.wollman1994-08-151-1/+1
|
* Convert to our man installation style. Also fixed long-standing bugwollman1994-08-051-1/+1
| | | | | in `fastboot'/`fasthalt' in which the interpreter would hang around after `reboot' or `halt' is run, causing an irritating ``Killed'' message.
* BSD 4.4 Lite sbin Sourcesrgrimes1994-05-265-0/+1753
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin.
OpenPOWER on IntegriCloud