From 69fcae39d94d526771e3715f1ce404e8906dfc5f Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Tue, 21 Jan 2020 11:00:20 +0300 Subject: add init manpage --- Makefile | 5 ++++- init.8 | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 init.8 diff --git a/Makefile b/Makefile index 8d78c21..ca20f99 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,7 @@ PREFIX=/usr INITDIR=${PREFIX}/lib/init +MAN8=${PREFIX}/share/man/man8 VERSION=0.5.1 install: @@ -13,6 +14,7 @@ install: sed 's#INITDIR#${INITDIR}#g' < rc.shutdown > ${DESTDIR}${INITDIR}/rc.shutdown chmod 755 ${DESTDIR}${INITDIR}/rc.boot ${DESTDIR}${INITDIR}/rc.shutdown install -Dm644 README ${DESTDIR}${INITDIR}/README + install -Dm644 init.8 ${DESTDIR}${MAN8}/init.8 uninstall: rm -f ${DESTDIR}/etc/init/rc.conf @@ -21,11 +23,12 @@ uninstall: rm -f ${DESTDIR}${INITDIR}/rc.shutdown rm -f ${DESTDIR}${INITDIR}/rc.lib rm -f ${DESTDIR}${INITDIR}/README + rm -f ${DESTDIR}${MAN8}/init.8 dist: mkdir -p init-${VERSION} cp LICENSE Makefile README rc.boot rc.conf rc.lib rc.local \ - rc.shutdown init-${VERSION} + rc.shutdown init.8 init-${VERSION} tar -cf init-${VERSION}.tar init-${VERSION} gzip init-${VERSION}.tar rm -rf init-${VERSION} diff --git a/init.8 b/init.8 new file mode 100644 index 0000000..68cdab3 --- /dev/null +++ b/init.8 @@ -0,0 +1,54 @@ +. +.TH "INIT" "8" "January 2020" "" "" +. +.SH "NAME" +\fBinit\fR \- init structure for Carbs Linux +. +.SH "DESCRIPTION" +\fBCarbs Linux\fR init is based on \fBKISS Linux\fR init\. It officially supports both sinit and busybox\-init\. It was structured to be as modular as possible\. +. +.SH "RUN ORDER" +At boot, the init program starts \fB/usr/lib/init/rc\.boot\fR\. rc\.boot after finishing most of its commands, runs \fB/etc/init/rc\.local\fR\. It then continues by running boot hooks\. +. +.P +Boot hooks are executed alphabetically\. You can add them to the \fB/etc/init\fR folder with the name \fB*\.boot\fR\. +. +.P +The boot is finished after all the hooks are run\. +. +.P +After receiving the poweroff/reboot command, init executes \fB/usr/lib/init/rc\.shutdown\fR\. The shutdown script stops runit services and proceeds to running pre\-shutdown hooks\. By the end, post\-shutdown hooks are executed\. +. +.P +Pre\-shutdown hooks, just as boot hooks, are to be located in \fB/etc/init\fR with the \fB\.pre\.shutdown\fR suffix\. Same as pre\-shutdown, post\-shutdown has the suffix \fB\.post\.shutdown\fR\. +. +.SH "STRUCTURE" +\fB/etc/init/\fR +. +.IP "\(bu" 4 +rc\.conf +. +.IP "\(bu" 4 +rc\.local +. +.IP "" 0 +. +.P +\fB/usr/lib/init/\fR +. +.IP "\(bu" 4 +README +. +.IP "\(bu" 4 +rc\.boot +. +.IP "\(bu" 4 +rc\.lib +. +.IP "\(bu" 4 +rc\.shutdown +. +.IP "" 0 +. +.SH "AUTHORS" +Cem Keylan and Dylan Araps\. -- cgit v1.2.3