\documentclass{report}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage{geometry}
\geometry{top=15mm, bottom=15mm, left=1cm, right=1cm}
\usepackage[french]{babel}
\usepackage{pslatex}
\usepackage[colorlinks=true,urlcolor=black]{hyperref}
\usepackage{graphicx}
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\footrulewidth}{0.4pt}
\fancyfoot[L]{Uubu.fr}
\fancyfoot[R]{lun. mai 31 21:17:33 CEST 2010}
\lfoot{\Large \textit{Uubu.fr}}
\hypersetup{pdfinfo={
Title={insserv},
Author={Sylvain Girod},
Creator={Bash script from uubu.fr's format version 1},
Producer={Bash script and PDFLaTeX},
Subject={Autorise un script init installé en lisant l'en-tête et calcule les dépendances.},
CreationDate={D:20100531211733},
ModDate={D:20100531211733},
Keywords={Linux}
}}
\begin{document}
 
\begin{center}
{\Huge insserv }
\end{center}
\vspace{1cm}
 
\begin{flushleft}
 
{\large Autorise un script init installé en lisant l'en-tête et calcule les dépendances.}
 
\vspace{10mm}
 
\vspace{1cm}{\huge Exemple }
 
\
 
{\ttfamily
\#\#\# BEGIN INIT INFO\\ \# Provides : boot\_facility\_1 \texttt{[} boot\_facility\_2 ...\texttt{]}\\ \# Required-Start : boot\_facility\_1 \texttt{[} boot\_facility\_2 ...\texttt{]}\\ \# Required-Stop : boot\_facility\_1 \texttt{[} boot\_facility\_2 ...\texttt{]}\\ \# Should-Start : boot\_facility\_1 \texttt{[} boot\_facility\_2 ...\texttt{]}\\ \# Should-Stop : boot\_facility\_1 \texttt{[} boot\_facility\_2 ...\texttt{]}\\ \# X-Start-Before : boot\_facility\_1 \texttt{[} boot\_facility\_2 ...\texttt{]}\\ \# X-Stop-After : boot\_facility\_1 \texttt{[} boot\_facility\_2 ...\texttt{]}\\ \# Default-Start : run\_level\_1 \texttt{[} run\_level\_2 ...\texttt{]}\\ \# Default-Stop : run\_level\_1 \texttt{[} run\_level\_2 ...\texttt{]}\\ \# X-Interactive : true\\ \# Short-Description : single\_line\_description\\ \# Description : multiline\_description\\ \#\#\# END INIT INFO\\
}
\vspace{8mm}
 
\hspace{1mm} insserv scanne /etc/insserv.conf et le contenu de /etc/insserv.conf.d/. exemple:
 
{\ttfamily
\# All local filesystems are mounted\\ \# (done during boot phase)\\ \$local\_fs boot\\ \hspace{2mm}\\ \# Low level networking\\ \$network network route\\ \hspace{2mm}\\ \# Named is operational\\ \$named named\\ \hspace{2mm}\\ \# All remote filesystems are mounted\\ \# (in some cases /usr may be remote).\\ \$remote\_fs \$local\_fs nfs\\ \hspace{2mm}\\ \# System logger is operational\\ \$syslog syslog\\ \hspace{2mm}\\ \# All network daemons are running\\ \$netdaemons portmap inetd\\ \hspace{2mm}\\ \# Services which need to be interactive\\ <interactive> boot.crypto\\
}
\vspace{8mm}
 
\vspace{1cm}{\huge OPTIONS }
 
\
 
\begin{description} \normalsize
\item[\hspace{1mm} -v, --verbose]{mode verbeux}
\item[\hspace{1mm} -c <config>, --config <config>]{Spécifier le chemin vers insserv.conf et insserv.conf.d}
\item[\hspace{1mm} -o <path>, --override <path>]{l'en-tête trouvé dans ce chemin va remplacer l'en-tête existant dans les scripts.}
\item[\hspace{1mm} -p <path>, --path <path>]{spécifier le dossier init.d}
\item[\hspace{1mm} -n, --dryrun]{ne pas mettre à jourslesliens}
\item[\hspace{1mm} -r, --remove]{supprime les scripts listés de tous les runlevels}
\item[\hspace{1mm} -d, --default]{utilise les runlevels par défaut dans les scripts.}
\item[\hspace{1mm} -f, --force]{ignore si un service requis est manquant}
\end{description}
 
\begin{description} \normalsize
\item[\hspace{1mm} \texttt{[}\texttt{[}/\texttt{]}path/to/init.d/\texttt{]}]{chemin relatif ou absolue vers le dossier des scripts.Défaut : /etc/init.d}
\item[\hspace{1mm} \texttt{[}\texttt{[}/\texttt{]}path/to/init.d/\texttt{]}script ...]{Liste des scripts qui doivent être ajoutés aux runlevels}
\item[\hspace{1mm} \texttt{[}\texttt{[}/\texttt{]}path/to/init.d/\texttt{]}script\texttt{[},start=<lvl1,lvl2,...>\texttt{]}]{Liste des scripts qui doivent être ajoutés aux runlevels spécifiés}
\item[\hspace{1mm} -r \texttt{[}\texttt{[}/\texttt{]}path/to/init.d/\texttt{]}script ...]{Liste de scripts qui devraient être supprimés des runlevels}
\end{description}
 
\vspace{1cm}{\huge Fichiers }
 
\
 
\begin{description} \normalsize
\item[\hspace{1mm} /etc/insserv.conf]{Fichier de configuration}
\item[\hspace{1mm} /etc/insserv.conf.d/]{dossier contenant les fichiers de configurations}
\item[\hspace{1mm} /etc/insserv/overrides/]{Chemin pour remplacer les en-têtes des scripts}
\item[\hspace{1mm} /etc/init.d/]{le dossier contenant les script init}
\item[\hspace{1mm} /etc/init.d/.depend.boot]{}
\item[\hspace{1mm} /etc/init.d/.depend.start]{}
\item[\hspace{1mm} /etc/init.d/.depend.stop]{Les fichiers de dépendances produits par insserv avec l'aide de startpar}
\end{description}
\end{flushleft}
\end{document}
