*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Linux man pages -> initscript (5)              
Title
Content
Arch
Section
 

INITSCRIPT(5)

Contents


NAME    [Toc]    [Back]

       initscript - script that executes inittab commands.

SYNOPSIS    [Toc]    [Back]

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

DESCRIPTION    [Toc]    [Back]

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

EXAMPLES    [Toc]    [Back]

       This is a sample initscript, which might be installed on your system as
       /etc/initscript.sample.


	      #
	      # 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"


FILES    [Toc]    [Back]

       /etc/inittab, /etc/initscript.

AUTHOR    [Toc]    [Back]

       Miquel van Smoorenburg ,<miquels@cistron.nl>

SEE ALSO    [Toc]    [Back]

      
      
       init(8), inittab(5).



			       December 24, 1999		 INITSCRIPT(5)
[ Back ]
 Similar pages
Name OS Title
invoke-rc.d Linux executes System-V style init script actions
inittab Linux format of the inittab file used by the sysv-compatible init process
ishell IRIX Executes a UNICOS shell command
uuxqt Tru64 Executes remote command requests
pxfexecv IRIX Executes a new process image file
dmPMSetupVideoFilter IRIX sets up, executes, and cleanups video filters
dmPMSetupAudioFilter IRIX sets up, executes, and cleanups audio filters
dmPMSetupVideoTransition IRIX sets up, executes, and cleanups video transitions
mpsched HP-UX control the processor or locality domain on which a specific process executes
intro IRIX introduction to commands, application programs, and programming commands.
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service