From 87032d1937051dd6d96bde4bf755bdcacafad8dc Mon Sep 17 00:00:00 2001 From: Jesse Smith Date: Tue, 20 Feb 2018 19:39:07 -0400 Subject: [PATCH] Moved initscript.sample from source to doc directory and committed it. --- doc/initscript.sample | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 doc/initscript.sample diff --git a/doc/initscript.sample b/doc/initscript.sample new file mode 100755 index 0000000..64126d0 --- /dev/null +++ b/doc/initscript.sample @@ -0,0 +1,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 +# +# 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, +# + + # 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"