1INITSCRIPT(5)         Linux System Administrator's Manual        INITSCRIPT(5)
2
3
4

NAME

6       initscript - script that executes inittab commands.
7

SYNOPSIS

9       /bin/sh /etc/initscript id runlevels action process
10

DESCRIPTION

12       When  the  shell script /etc/initscript is present, init will use it to
13       execute the commands from inittab.  This script  can  be  used  to  set
14       things like ulimit and umask default values for every process.
15

EXAMPLES

17       This is a sample initscript, which might be installed on your system as
18       /etc/initscript.sample.
19
20
21              #
22              # initscript   Executed by init(8) for every program it
23              #              wants to spawn like this:
24              #
25              #              /bin/sh /etc/initscript <id> <level> <action> <process>
26              #
27
28                # Set umask to safe level, and enable core dumps.
29                umask 022
30                ulimit -c 2097151
31                PATH=/bin:/sbin:/usr/bin:/usr/sbin
32                export PATH
33
34                # Increase the hard filedescriptor limit for all processes
35                # to 8192.  The soft limit is still 1024, but any unpriviliged
36                # process can increase it's soft limit up to the hardlimit
37                # with "ulimit -Sn xxx" (needs a 2.2.13 or later Linux kernel).
38                ulimit -Hn 8192
39
40                # Execute the program.
41                eval exec "$4"
42
43
44

NOTES

46       This script is not meant as startup script for daemons or somesuch.  It
47       has nothing to do with a rc.local style script. It's just a handler for
48       things executed from /etc/inittab. Experimenting  with  this  can  make
49       your system un(re)bootable.
50

FILES

52       /etc/inittab, /etc/initscript.
53

AUTHOR

55       Miquel van Smoorenburg ,<miquels@cistron.nl>
56

SEE ALSO

58       init(8), inittab(5).
59
60
61
62                                 July 10, 2003                   INITSCRIPT(5)
Impressum