Get more help from gcc, add -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2...
[sysvinit.git] / src / initscript.sample
1 #
2 # initscript If this script is intalled as /etc/initscript,
3 # it is executed by init(8) for every program it
4 # wants to spawn like this:
5 #
6 # /bin/sh /etc/initscript <id> <level> <action> <process>
7 #
8 # It can be used to set the default umask and ulimit
9 # of all processes. By default this script is installed
10 # as /etc/initscript.sample, so to enable it you must
11 # rename this script first to /etc/initscript.
12 #
13 # Version: @(#)initscript 1.10 10-Dec-1995 MvS.
14 #
15 # Author: Miquel van Smoorenburg, <miquels@cistron.nl>
16 #
17
18 # Set umask to safe level, and enable core dumps.
19 umask 022
20 ulimit -c 2097151
21 PATH=/bin:/sbin:/usr/bin:/usr/sbin
22 export PATH
23
24 # Execute the program.
25 eval exec "$4"