Note: This article pertains to Mac OS X Server versions 1.x, which were released prior to May 2001.
The simplest way to do this is to run this command:
sh /etc/rc
In case this hangs, though, and you must execute each step yourself after running "fsck -y" and "mount -uw /" as instructed by the first single user prompt:
Option 1: Run needed startup files up to and including 1100_DirectoryServices by hand:
cd /etc/startup
./0100_LocalMounts
./0300_VirtualMemory
./0500_MachMessaging
./0600_Disks
./0900_SystemLog
./1000_RPC
./1100_DirectoryServices
You can cheat and do the above like so:
for i in 0[123456789]* 1[01]*; do $i; done
Option 2: Run exactly the needed commands:
mount -vat ufs
mach_swapon -av
nmserver -nonet
autodiskmount
syslogd
portmap
nibindd
lookupd
If any of the above hangs, see the startup file that runs the busted program to see how it is normally launched. For example, 0300_VirtualMemory ensures that a swapfile exists before running mach_swapon. This is usually already the case.