File: initscript.sample

package info (click to toggle)
sysvinit 2.75-3
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 552 kB
  • ctags: 423
  • sloc: ansic: 4,469; sh: 816; makefile: 115
file content (25 lines) | stat: -rwxr-xr-x 706 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#
# initscript	If this script is intalled as /etc/initscript,
#		it is executed by init(8) for every program it
#		wants to spawn like this:
#
#		/bin/sh /etc/initscript <id> <level> <action> <process>
#
#		It can be used to set the default umask and ulimit
#		of all processes. By default this script is installed
#		as /etc/initscript.sample, so to enable it you must
#		rename this script first to /etc/initscript.
#
# Version:	@(#)initscript 1.10 10-Dec-1995 MvS.
#
# Author:	Miquel van Smoorenburg, <miquels@cistron.nl>
#

  # Set umask to safe level, and enable core dumps.
  umask 022
  ulimit -c 2097151
  PATH=/bin:/sbin:/usr/bin:/usr/sbin
  export PATH

  # Execute the program.
  eval exec "$4"