summaryrefslogtreecommitdiff
path: root/init.d
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-07-10 19:09:41 +0000
committerRoy Marples <roy@marples.name>2007-07-10 19:09:41 +0000
commit05201b514b99d636af8067e442b2c6ab04e6d530 (patch)
tree9f41b80b1540b297ba38adc294cb700f92af4aa6 /init.d
parent445918685e559babf219cbfc775b9c582b52a2fc (diff)
downloadopenrc-05201b514b99d636af8067e442b2c6ab04e6d530.tar.gz
openrc-05201b514b99d636af8067e442b2c6ab04e6d530.tar.bz2
openrc-05201b514b99d636af8067e442b2c6ab04e6d530.tar.xz
init scripts and their extra options can now have descriptions, #184327.
Diffstat (limited to 'init.d')
-rwxr-xr-xinit.d/checkfs3
-rwxr-xr-xinit.d/checkroot3
-rwxr-xr-xinit.d/hostname2
-rwxr-xr-xinit.d/local3
-rwxr-xr-xinit.d/localmount4
-rwxr-xr-xinit.d/netmount2
-rwxr-xr-xinit.d/rmnologin2
-rwxr-xr-xinit.d/urandom2
8 files changed, 21 insertions, 0 deletions
diff --git a/init.d/checkfs b/init.d/checkfs
index d2929ed..54bdce9 100755
--- a/init.d/checkfs
+++ b/init.d/checkfs
@@ -2,6 +2,9 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
+description="Check filesystems according to /etc/fstab for errors and \
+optionally repair them."
+
depend() {
need checkroot
after modules
diff --git a/init.d/checkroot b/init.d/checkroot
index d6dcd4f..a7a8b3e 100755
--- a/init.d/checkroot
+++ b/init.d/checkroot
@@ -2,6 +2,9 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
+description="Check the root filesystem according to /etc/fstab for errors \
+and optionally repair them."
+
do_mtab() {
# Don't create mtab if /etc is readonly
if ! touch /etc/mtab 2> /dev/null ; then
diff --git a/init.d/hostname b/init.d/hostname
index 4e80452..35cf106 100755
--- a/init.d/hostname
+++ b/init.d/hostname
@@ -2,6 +2,8 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
+description="Sets the hostname of the machine."
+
depend() {
need checkroot
}
diff --git a/init.d/local b/init.d/local
index 77d0266..60556e4 100755
--- a/init.d/local
+++ b/init.d/local
@@ -2,6 +2,9 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
+description="Executes user command in /etc/conf.d/local.start when starting \
+and /etc/conf.d/local.stop when stopping."
+
depend() {
after *
}
diff --git a/init.d/localmount b/init.d/localmount
index 456aee3..0268848 100755
--- a/init.d/localmount
+++ b/init.d/localmount
@@ -2,6 +2,10 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
+description="Mounts disks and swap according to /etc/fstab."
+[ -e /proc/filessystems ] && description="${description} Also mounts various filesystems in /proc."
+[ -x /sbin/dumpon ] && description="${description} Also configures saving kernel dumps to swap."
+
depend() {
need checkfs
}
diff --git a/init.d/netmount b/init.d/netmount
index a2f7130..61b7a6c 100755
--- a/init.d/netmount
+++ b/init.d/netmount
@@ -2,6 +2,8 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
+description="Mounts network shares according to /etc/fstab."
+
have_nfs() {
local IFS=\n x=
set -- $(fstabinfo --fstype nfs,nfs4)
diff --git a/init.d/rmnologin b/init.d/rmnologin
index 0c1691f..3ebd6df 100755
--- a/init.d/rmnologin
+++ b/init.d/rmnologin
@@ -2,6 +2,8 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
+description="Removes a file which blocks logins until this service has run."
+
depend() {
need localmount
}
diff --git a/init.d/urandom b/init.d/urandom
index ecded0a..3d08376 100755
--- a/init.d/urandom
+++ b/init.d/urandom
@@ -4,6 +4,8 @@
URANDOM_SEED=${URANDOM_SEED:-/var/run/random-seed}
+description="Initializes the random number generator."
+
depend() {
need localmount
}