📄 initscript.5
字号:
.TH INITSCRIPT 5 "July 10, 2003" "" "Linux System Administrator's Manual".SH NAMEinitscript \- script that executes inittab commands..SH SYNOPSIS/bin/sh /etc/initscript id runlevels action process.SH DESCRIPTIONWhen the shell script \fI/etc/initscript\fP is present, \fBinit\fPwill use it to execute the commands from \fIinittab\fP.This script can be used to set things like \fBulimit\fP and\fBumask\fP default values for every process..SH EXAMPLESThis is a sample initscript, which might be installed on yoursystem as \fI/etc/initscript.sample\fP..RS.sp.nf.ne 7## initscript Executed by init(8) for every program it# wants to spawn like this:## /bin/sh /etc/initscript <id> <level> <action> <process># # Set umask to safe level, and enable core dumps. umask 022 ulimit -c 2097151 PATH=/bin:/sbin:/usr/bin:/usr/sbin export PATH # Increase the hard filedescriptor limit for all processes # to 8192. The soft limit is still 1024, but any unpriviliged # process can increase it's soft limit up to the hardlimit # with "ulimit -Sn xxx" (needs a 2.2.13 or later Linux kernel). ulimit -Hn 8192 # Execute the program. eval exec "$4".sp.RE.SH NOTESThis script is not meant as startup script for daemons or somesuch.It has nothing to do with a \fIrc.local\fP style script. It's justa handler for things executed from \fB/etc/inittab\fP. Experimentingwith this can make your system un(re)bootable..RE.SH FILES/etc/inittab,/etc/initscript..SH AUTHORMiquel van Smoorenburg ,<miquels@cistron.nl>.SH "SEE ALSO"init(8), inittab(5).
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -