old-www/HOWTO/Path-4.html

49 lines
1.7 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE>PATH HOWTO: Init</TITLE>
<LINK HREF="Path-5.html" REL=next>
<LINK HREF="Path-3.html" REL=previous>
<LINK HREF="Path.html#toc4" REL=contents>
</HEAD>
<BODY>
<A HREF="Path-5.html">Next</A>
<A HREF="Path-3.html">Previous</A>
<A HREF="Path.html#toc4">Contents</A>
<HR>
<H2><A NAME="s4">4. Init</A></H2>
<P>
<P>Init is a parent process for all the other processes of the
system. Other processes inherit environment of the init process and
the path is the init path in the rare case that no other path is set.
<P>The 'init path' is fixed in the source of the init program and it is:
<P>
<BLOCKQUOTE><CODE>
<PRE>
/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin
</PRE>
</CODE></BLOCKQUOTE>
<P>Note that init path does not contain /usr/local/bin.
<P>All the programs that are started from /etc/inittab work in init
environment, especially system initialization scripts in /etc/init.d
(Debian 1.3).
<P>Everything that is started from system initialization scripts has init
environment as default environment. For example, syslogd, kerneld,
pppd (when started from startup), gpm and most importantly lpd and
inetd have init environment and they do not change it.
<P>A group of programs are started from startup scripts but the PATH
environment variable is explicitly set in the startup script.
Examples are: atd, sendmail, apache and squid.
<P>There are other programs that are started from boot scripts but they
change the path completely. One such example is cron.
<P>
<P>
<HR>
<A HREF="Path-5.html">Next</A>
<A HREF="Path-3.html">Previous</A>
<A HREF="Path.html#toc4">Contents</A>
</BODY>
</HTML>