summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Nicholson <dbn.lists@gmail.com>2008-06-11 08:56:42 -0700
committerDan Nicholson <dbn.lists@gmail.com>2008-06-11 09:01:42 -0700
commit6c16811d7ee4636238090b3f1da24bb82f0180fc (patch)
tree319e2a3dd31852e9bdffab68e8e98c1a29e0f365
parentf5898b8665320b1eb271750062bdf0f23f820306 (diff)
Add manual pages for install_initd and remove_initd
Manual pages for install_initd and remove_initd have been added to the repo. They're a little bare for now.
-rw-r--r--configure.ac10
-rw-r--r--src/.gitignore2
-rw-r--r--src/Makefile.am2
-rw-r--r--src/install_initd.8.in39
-rw-r--r--src/remove_initd.8.in39
5 files changed, 90 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index f58a8d5..d906f1a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -33,13 +33,19 @@ AC_ARG_WITH([initd-dir],
[initd_dir=/etc/init.d]
)
AC_DEFINE_UNQUOTED([DEF_INITD_DIR], ["$initd_dir"],
- [Default init.d directory]
-)
+ [Default init.d directory])
+AC_SUBST([DEF_INITD_DIR], ["$initd_dir"])
+
+dnl Substituted in manpages
+RELDATE=`${DATE-date} -u +'%d %b %Y' 2>/dev/null`
+AC_SUBST([RELDATE])
AC_CONFIG_FILES([
Makefile
lib/Makefile
src/Makefile
+src/install_initd.8
+src/remove_initd.8
test/Makefile
])
diff --git a/src/.gitignore b/src/.gitignore
index 434797e..e0d4954 100644
--- a/src/.gitignore
+++ b/src/.gitignore
@@ -1,2 +1,4 @@
install_initd
remove_initd
+install_initd.8
+remove_initd.8
diff --git a/src/Makefile.am b/src/Makefile.am
index 85f7654..889ad48 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -7,3 +7,5 @@ install_initd_LDADD = $(top_builddir)/lib/libinitd.la
remove_initd_SOURCES = remove_initd.c util.h util.c
remove_initd_LDADD = $(top_builddir)/lib/libinitd.la
+
+man_MANS = install_initd.8 remove_initd.8
diff --git a/src/install_initd.8.in b/src/install_initd.8.in
new file mode 100644
index 0000000..efd0a7f
--- /dev/null
+++ b/src/install_initd.8.in
@@ -0,0 +1,39 @@
+.\" Manual for install_initd
+.TH INSTALL_INITD 8 "@RELDATE@" "@PACKAGE_NAME@ @PACKAGE_VERSION@" ""
+
+.SH NAME
+install_initd \- install init services
+
+.SH SYNOPSIS
+.B install_initd
+[\fIOPTION\fR]... [\fISERVICE\fR]...
+
+.SH DESCRIPTION
+.PP
+\fBinstall_initd\fR enables SERVICEs to be run at system initialization
+and shutdown. Each SERVICE corresponds to a Linux Standard Base (LSB)
+conformant init script. \fBinstall_initd\fR creates symbolic links to
+the scripts for use in a sysv-compatible init system.
+
+.PP
+If absolute paths are used for the SERVICEs, the init.d directory is
+determined by their directory name. Otherwise, the default init.d
+directory is used. This can be altered using the \fB\-d\fR option.
+
+.SH OPTIONS
+.TP
+\fB\-d\fR, \fB\-\-directory\fR=\fIDIR\fR
+set the init.d directory (default @DEF_INITD_DIR@)
+.TP
+\fB\-v\fR, \fB\-\-verbose\fR
+enable verbose messaging
+.TP
+\fB\-h\fR, \fB\-\-help\fR
+display the help text and exit
+
+.SH AUTHOR
+Written by Dan Nicholson.
+
+.SH "SEE ALSO"
+.PP
+\fBremove_initd\fR(8), \fBinit\fR(8), \fBinittab\fR(5)
diff --git a/src/remove_initd.8.in b/src/remove_initd.8.in
new file mode 100644
index 0000000..7b8c377
--- /dev/null
+++ b/src/remove_initd.8.in
@@ -0,0 +1,39 @@
+.\" Manual for remove_initd
+.TH REMOVE_INITD 8 "@RELDATE@" "@PACKAGE_NAME@ @PACKAGE_VERSION@" ""
+
+.SH NAME
+remove_initd \- remove init services
+
+.SH SYNOPSIS
+.B remove_initd
+[\fIOPTION\fR]... [\fISERVICE\fR]...
+
+.SH DESCRIPTION
+.PP
+\fBremove_initd\fR disables SERVICEs from running at system
+initialization and shutdown. Each SERVICE corresponds to a Linux
+Standard Base (LSB) conformant init script. \fBremove_initd\fR removes
+symbolic links to the scripts used in a sysv-compatible init system.
+
+.PP
+If absolute paths are used for the SERVICEs, the init.d directory is
+determined by their directory name. Otherwise, the default init.d
+directory is used. This can be altered using the \fB\-d\fR option.
+
+.SH OPTIONS
+.TP
+\fB\-d\fR, \fB\-\-directory\fR=\fIDIR\fR
+set the init.d directory (default @DEF_INITD_DIR@)
+.TP
+\fB\-v\fR, \fB\-\-verbose\fR
+enable verbose messaging
+.TP
+\fB\-h\fR, \fB\-\-help\fR
+display the help text and exit
+
+.SH AUTHOR
+Written by Dan Nicholson.
+
+.SH "SEE ALSO"
+.PP
+\fBinstall_initd\fR(8), \fBinit\fR(8), \fBinittab\fR(5)