diff options
author | Cem Keylan <cem@ckyln.com> | 2020-01-21 11:00:20 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-01-21 11:00:20 +0300 |
commit | 69fcae39d94d526771e3715f1ce404e8906dfc5f (patch) | |
tree | 9057d01f2bdf0dd82e9416fb82788057f3e29880 | |
parent | 391be3c7b8459d74c102ce0059a3a4d0dbe4f188 (diff) | |
download | init-69fcae39d94d526771e3715f1ce404e8906dfc5f.tar.gz |
add init manpage
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | init.8 | 54 |
2 files changed, 58 insertions, 1 deletions
@@ -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} @@ -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\. |