summaryrefslogtreecommitdiffstats
path: root/sbin/init/init.c
Commit message (Collapse)AuthorAgeFilesLines
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Fix a non-critical memory leak.ru1999-07-231-4/+6
| | | | | PR: 12769 Submitted by: Peter Jeremy <peter.jeremy@alcatel.com.au>
* Bring in System V run-level patches (turned off by default).ru1999-06-181-4/+37
| | | | | | While I'm here, fix some typos in the manpage. Requested by: des
* Init(8) will halt the system if sent USR1 signal,ru1999-06-161-5/+12
| | | | | | | | | or halt and turn the power off if sent SIGUSR2. PR: 5451 Submitted by: Leif Neland <leifn@image.dk> Reworked by: ru Reviewed by: -hackers
* Memory management error in init.phk1998-07-221-2/+5
| | | | | | PR: 7320 Reviewed by: phk Submitted by: Anders Thulin <Anders.X.Thulin@telia.se>
* Correct .Nm use. Add rcsid. Use min for minutes instead of mn.charnier1998-07-061-4/+6
|
* Don't assume sigset_t and int are equivalent.jraynard1998-03-021-2/+2
|
* 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.
* 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-021-17/+158
| | | | | 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
* 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
|
* Fix mount call for devfs.phk1997-03-301-2/+1
| | | | Submitted by: bde
* 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>.
* Style police.davidn1997-01-221-13/+14
|
* Impose login_cap resource limits on processes started by init.davidn1997-01-191-0/+31
| | | | | | | | /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.
* If passed the -d flag, mount devfs on /devphk1996-10-281-1/+12
|
* 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 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-271-2/+15
| | | | | 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
|
* BSD 4.4 Lite sbin Sourcesrgrimes1994-05-261-0/+1297
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin.
OpenPOWER on IntegriCloud