Quản trị hệ thống hiện nay đối phó với một số lượng lớn các trường hợp, hệ thống điều hành, gói phần mềm, và các vấn đề. Những người trong biết có giữ bản sao của Linux Server Hacks đóng cửa ở bàn tay để giảm bớt gánh nặng của họ. Và trong khi điều này giúp, đó là không đủ: bất kỳ admin sys biết có hack nhiều hơn nữa, thủ thuật mát mẻ, | 4 Creating a Persistent Daemon with init to get an actual serial console that you can log in on you ll need to add a line to etc inittab that looks something like this si 12345 respawn sbin agetty 19200 ttySO vtioo nosmp Disables SMP on a kernel so enabled. This can help if you suspect kernel trouble on a multiprocessor system. mem Defines the total amount of available system memory. See Using Large Amounts of RAM 21 . ro Mounts the partition read-only this is typically the default and is remounted read-write after fsck runs . rw Mounts the partition read-write. This is generally a bad idea unless you re also running the init hack. Pass your init line along with rtv like this init bin bash rw to eliminate the need for all of that silly mount -0 remount rw stuff in Forgoing the Console Login 2 . Congratulations now you ve hacked a hack. You can also pass parameters for SCSI controllers IDE devices sound cards and just about any other device driver. Every driver is different and typically allows for setting IRQs base addresses parity speeds options for auto-probing and more. Consult your online documentation for the excruciating details. See also man bootparam usr src linux Documentation 4. Creating a Persistent Daemon with init Make sure that your process stays up no matter what There are a number of scripts that will automatically restart a process if it exits unexpectedly. Perhaps the simplest is something like while do echo Run some code here. sleep 1 done If you run a foreground process in place of that echo line then the process is always guaranteed to be running or at least it will try to run . The simply makes the while always execute and is more efficient than running bin true as it doesn t have to spawn an external command on each iteration . 8 I Server Basics Creating a Persistent Daemon with init 4 Definitely do not run a background process in place of the echo unless you enjoy filling up your process table as the while will then spawn your command as .