Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 381527
Collapse All | Expand All

(-)init.d-original/acct (-1 / +1 lines)
Lines 3-9 Link Here
3
# Distributed under the terms of the GNU General Public License v2
3
# Distributed under the terms of the GNU General Public License v2
4
# $Header: /var/cvsroot/gentoo-x86/sys-process/acct/files/acct.initd-r1,v 1.1 2011/01/26 05:36:22 jer Exp $
4
# $Header: /var/cvsroot/gentoo-x86/sys-process/acct/files/acct.initd-r1,v 1.1 2011/01/26 05:36:22 jer Exp $
5
5
6
opts="report reload"
6
extra_commands="report reload"
7
7
8
depend() {
8
depend() {
9
    need localmount
9
    need localmount
(-)init.d-original/acpid (-1 / +1 lines)
Lines 3-9 Link Here
3
# Distributed under the terms of the GNU General Public License v2
3
# Distributed under the terms of the GNU General Public License v2
4
# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/files/acpid-2.0.3-init.d,v 1.1 2010/04/04 16:39:09 ssuominen Exp $
4
# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/files/acpid-2.0.3-init.d,v 1.1 2010/04/04 16:39:09 ssuominen Exp $
5
5
6
opts="reload"
6
extra_commands="reload"
7
7
8
depend() {
8
depend() {
9
	need localmount
9
	need localmount
(-)init.d-original/alsasound (-1 / +1 lines)
Lines 6-12 Link Here
6
alsastatedir=/var/lib/alsa
6
alsastatedir=/var/lib/alsa
7
alsascrdir=/etc/alsa.d
7
alsascrdir=/etc/alsa.d
8
8
9
opts="save restore"
9
extra_commands="save restore"
10
10
11
depend() {
11
depend() {
12
	need localmount
12
	need localmount
(-)init.d-original/atd (-2 / +1 lines)
Lines 10-17 Link Here
10
start() {
10
start() {
11
	ebegin "Starting atd"
11
	ebegin "Starting atd"
12
	start-stop-daemon --start --quiet --pidfile /var/run/atd.pid \
12
	start-stop-daemon --start --quiet --pidfile /var/run/atd.pid \
13
#		--startas /usr/sbin/atd -- ${ATD_OPTS}
13
		--start --exec /usr/sbin/atd -- ${ATD_OPTS}
14
		--exec /usr/sbin/atd -- ${ATD_OPTS}
15
	eend $?
14
	eend $?
16
}
15
}
17
16
(-)init.d-original/avahi-daemon (-1 / +1 lines)
Lines 2-8 Link Here
2
# Copyright 1999-2007 Gentoo Foundation
2
# Copyright 1999-2007 Gentoo Foundation
3
# Distributed under the terms of the GNU General Public License v2
3
# Distributed under the terms of the GNU General Public License v2
4
4
5
opts="reload"
5
extra_commands="reload"
6
6
7
depend() {
7
depend() {
8
	before netmount nfsmount
8
	before netmount nfsmount
(-)init.d-original/avahi-dnsconfd (-1 / +1 lines)
Lines 2-8 Link Here
2
# Copyright 1999-2007 Gentoo Foundation
2
# Copyright 1999-2007 Gentoo Foundation
3
# Distributed under the terms of the GNU General Public License v2
3
# Distributed under the terms of the GNU General Public License v2
4
4
5
opts="reload"
5
extra_commands="reload"
6
6
7
depend() {
7
depend() {
8
	need avahi-daemon
8
	need avahi-daemon
(-)init.d-original/dbus (-1 / +1 lines)
Lines 3-9 Link Here
3
# Distributed under the terms of the GNU General Public License, v2 or later
3
# Distributed under the terms of the GNU General Public License, v2 or later
4
# $Header: /var/cvsroot/gentoo-x86/sys-apps/dbus/files/dbus.init-1.0,v 1.4 2007/04/04 13:35:25 cardoe Exp $
4
# $Header: /var/cvsroot/gentoo-x86/sys-apps/dbus/files/dbus.init-1.0,v 1.4 2007/04/04 13:35:25 cardoe Exp $
5
5
6
opts="reload"
6
extra_commands="reload"
7
7
8
depend() {
8
depend() {
9
	need localmount
9
	need localmount
(-)init.d-original/dhcpd (-1 / +1 lines)
Lines 3-9 Link Here
3
# Distributed under the terms of the GNU General Public License v2
3
# Distributed under the terms of the GNU General Public License v2
4
# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcp/files/dhcpd.init3,v 1.1 2011/03/05 23:59:20 vapier Exp $
4
# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcp/files/dhcpd.init3,v 1.1 2011/03/05 23:59:20 vapier Exp $
5
5
6
opts="configtest"
6
extra_commands="configtest"
7
7
8
DHCPD_CONF=${DHCPD_CONF:-/etc/dhcp/${SVCNAME}.conf}
8
DHCPD_CONF=${DHCPD_CONF:-/etc/dhcp/${SVCNAME}.conf}
9
9
(-)init.d-original/iptables (-1 / +1 lines)
Lines 3-9 Link Here
3
# Distributed under the terms of the GNU General Public License v2
3
# Distributed under the terms of the GNU General Public License v2
4
# $Header: /var/cvsroot/gentoo-x86/net-firewall/iptables/files/iptables-1.3.2.init,v 1.6 2007/03/12 21:49:04 vapier Exp $
4
# $Header: /var/cvsroot/gentoo-x86/net-firewall/iptables/files/iptables-1.3.2.init,v 1.6 2007/03/12 21:49:04 vapier Exp $
5
5
6
opts="save reload panic"
6
extra_commands="save reload panic"
7
7
8
iptables_name=${SVCNAME}
8
iptables_name=${SVCNAME}
9
if [ "${iptables_name}" != "iptables" -a "${iptables_name}" != "ip6tables" ] ; then
9
if [ "${iptables_name}" != "iptables" -a "${iptables_name}" != "ip6tables" ] ; then
(-)init.d-original/mtab (-1 / +1 lines)
Lines 12-18 Link Here
12
12
13
start()
13
start()
14
{
14
{
15
	if [ -l /etc/mtab ]
15
	if [ -L  /etc/mtab ]
16
	then
16
	then
17
		einfo "Skipping mtab update (mtab is a symbolic link)"
17
		einfo "Skipping mtab update (mtab is a symbolic link)"
18
		return 0
18
		return 0
(-)init.d-original/net.br0 (-1 / +1 lines)
Lines 662-668 Link Here
662
stop()
662
stop()
663
{
663
{
664
	local IFACE=${RC_SVCNAME#*.} module=
664
	local IFACE=${RC_SVCNAME#*.} module=
665
	local IFVAR=$(shell_var "${IFACE}") opts=
665
	local IFVAR=$(shell_var "${IFACE}") extra_commands=
666
666
667
	einfo "Bringing down interface ${IFACE}"
667
	einfo "Bringing down interface ${IFACE}"
668
	eindent
668
	eindent
(-)init.d-original/net.eth0 (-1 / +1 lines)
Lines 662-668 Link Here
662
stop()
662
stop()
663
{
663
{
664
	local IFACE=${RC_SVCNAME#*.} module=
664
	local IFACE=${RC_SVCNAME#*.} module=
665
	local IFVAR=$(shell_var "${IFACE}") opts=
665
	local IFVAR=$(shell_var "${IFACE}") extra_commands=
666
666
667
	einfo "Bringing down interface ${IFACE}"
667
	einfo "Bringing down interface ${IFACE}"
668
	eindent
668
	eindent
(-)init.d-original/net.lo (-1 / +1 lines)
Lines 662-668 Link Here
662
stop()
662
stop()
663
{
663
{
664
	local IFACE=${RC_SVCNAME#*.} module=
664
	local IFACE=${RC_SVCNAME#*.} module=
665
	local IFVAR=$(shell_var "${IFACE}") opts=
665
	local IFVAR=$(shell_var "${IFACE}") extra_commands=
666
666
667
	einfo "Bringing down interface ${IFACE}"
667
	einfo "Bringing down interface ${IFACE}"
668
	eindent
668
	eindent
(-)init.d-original/netmount (-3 / +3 lines)
Lines 6-17 Link Here
6
6
7
need_portmap()
7
need_portmap()
8
{
8
{
9
	local opts=
9
	local extra_commands=
10
	local IFS="
10
	local IFS="
11
"
11
"
12
	set -- $(fstabinfo --options --fstype nfs,nfs4)
12
	set -- $(fstabinfo --options --fstype nfs,nfs4)
13
	for opts; do
13
	for extra_commands; do
14
		case ,$opts, in
14
		case ,$extra_commands, in
15
			*,noauto,*|*,nolock,*);;
15
			*,noauto,*|*,nolock,*);;
16
			*) return 0;;
16
			*) return 0;;
17
		esac
17
		esac
(-)init.d-original/net.tap0 (-1 / +1 lines)
Lines 662-668 Link Here
662
stop()
662
stop()
663
{
663
{
664
	local IFACE=${RC_SVCNAME#*.} module=
664
	local IFACE=${RC_SVCNAME#*.} module=
665
	local IFVAR=$(shell_var "${IFACE}") opts=
665
	local IFVAR=$(shell_var "${IFACE}") extra_commands=
666
666
667
	einfo "Bringing down interface ${IFACE}"
667
	einfo "Bringing down interface ${IFACE}"
668
	eindent
668
	eindent
(-)init.d-original/net.tap1 (-1 / +1 lines)
Lines 662-668 Link Here
662
stop()
662
stop()
663
{
663
{
664
	local IFACE=${RC_SVCNAME#*.} module=
664
	local IFACE=${RC_SVCNAME#*.} module=
665
	local IFVAR=$(shell_var "${IFACE}") opts=
665
	local IFVAR=$(shell_var "${IFACE}") extra_commands=
666
666
667
	einfo "Bringing down interface ${IFACE}"
667
	einfo "Bringing down interface ${IFACE}"
668
	eindent
668
	eindent
(-)init.d-original/nfs (-1 / +1 lines)
Lines 3-9 Link Here
3
# Distributed under the terms of the GNU General Public License v2
3
# Distributed under the terms of the GNU General Public License v2
4
# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfs.initd,v 1.25 2011/09/01 15:18:01 vapier Exp $
4
# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfs.initd,v 1.25 2011/09/01 15:18:01 vapier Exp $
5
5
6
opts="reload"
6
extra_commands="reload"
7
7
8
# This variable is used for controlling whether or not to run exportfs -ua;
8
# This variable is used for controlling whether or not to run exportfs -ua;
9
# see stop() for more information
9
# see stop() for more information
(-)init.d-original/reboot.sh (-3 / +3 lines)
Lines 1-10 Link Here
1
# Copyright 1999-2007 Gentoo Foundation
1
# Copyright 1999-2007 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
3
4
opts="-dpk"
4
extra_commands="-dpk"
5
[ "${RC_DOWN_INTERFACE}" = "yes" ] && opts="${opts}i"
5
[ "${RC_DOWN_INTERFACE}" = "yes" ] && extra_commands="${extra_commands}i"
6
6
7
/sbin/reboot "${opts}" 2>/dev/null
7
/sbin/reboot "${extra_commands}" 2>/dev/null
8
8
9
# hmm, if the above failed, that's kind of odd ...
9
# hmm, if the above failed, that's kind of odd ...
10
# so let's force a reboot
10
# so let's force a reboot
(-)init.d-original/samba (-1 / +1 lines)
Lines 3-9 Link Here
3
# Distributed under the terms of the GNU General Public License, v2 or later
3
# Distributed under the terms of the GNU General Public License, v2 or later
4
# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/files/3.6/samba.initd,v 1.1 2011/06/30 15:50:28 dagger Exp $
4
# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/files/3.6/samba.initd,v 1.1 2011/06/30 15:50:28 dagger Exp $
5
5
6
opts="reload"
6
extra_commands="reload"
7
7
8
depend() {
8
depend() {
9
	after slapd
9
	after slapd
(-)init.d-original/shutdown.sh (-5 / +5 lines)
Lines 1-12 Link Here
1
# Copyright 1999-2006 Gentoo Foundation
1
# Copyright 1999-2006 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
3
4
opts="-d"
4
extra_commands="-d"
5
[ "${INIT_HALT}" != "HALT" ] && opts="${opts}p"
5
[ "${INIT_HALT}" != "HALT" ] && extra_commands="${extra_commands}p"
6
[ "${RC_DOWN_INTERFACE}" = "yes" ] && opts="${opts}i"
6
[ "${RC_DOWN_INTERFACE}" = "yes" ] && extra_commands="${extra_commands}i"
7
[ "${RC_DOWN_HARDDISK}" = "yes" ] && opts="${opts}h"
7
[ "${RC_DOWN_HARDDISK}" = "yes" ] && extra_commands="${extra_commands}h"
8
8
9
/sbin/halt "${opts}"
9
/sbin/halt "${extra_commands}"
10
10
11
# hmm, if the above failed, that's kind of odd ...
11
# hmm, if the above failed, that's kind of odd ...
12
# so let's force a halt
12
# so let's force a halt
(-)init.d-original/smartd (-1 / +1 lines)
Lines 8-14 Link Here
8
    after bootmisc
8
    after bootmisc
9
}
9
}
10
10
11
opts="${opts} reload"
11
extra_commands="${extra_commands} reload"
12
12
13
checkconfig() {
13
checkconfig() {
14
	if [ ! -f "/etc/smartd.conf" ] ; then
14
	if [ ! -f "/etc/smartd.conf" ] ; then
(-)init.d-original/spindownd (-2 / +2 lines)
Lines 9-16 Link Here
9
SPINDOWND_CFG=${SPINDOWND_CFG:-/etc/spindown.conf}
9
SPINDOWND_CFG=${SPINDOWND_CFG:-/etc/spindown.conf}
10
PIDPATH=${PIDPATH:-/var/run/spindownd.pid}
10
PIDPATH=${PIDPATH:-/var/run/spindownd.pid}
11
11
12
# opts="reload stats"
12
# extra_commands="reload stats"
13
opts="${opts} reload"
13
extra_commands="${extra_commands} reload"
14
14
15
15
16
depend() {
16
depend() {
(-)init.d-original/sshd (-1 / +1 lines)
Lines 3-9 Link Here
3
# Distributed under the terms of the GNU General Public License v2
3
# Distributed under the terms of the GNU General Public License v2
4
# $Header: /var/cvsroot/gentoo-x86/net-misc/openssh/files/sshd.rc6.2,v 1.1 2011/01/24 02:55:47 vapier Exp $
4
# $Header: /var/cvsroot/gentoo-x86/net-misc/openssh/files/sshd.rc6.2,v 1.1 2011/01/24 02:55:47 vapier Exp $
5
5
6
opts="${opts} reload checkconfig gen_keys"
6
extra_commands="${extra_commands} reload checkconfig gen_keys"
7
7
8
depend() {
8
depend() {
9
	use logger dns
9
	use logger dns
(-)init.d-original/syslog-ng (-1 / +1 lines)
Lines 3-9 Link Here
3
# Distributed under the terms of the GNU General Public License v2
3
# Distributed under the terms of the GNU General Public License v2
4
# $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.rc6.3,v 1.1 2010/04/06 02:11:35 mr_bones_ Exp $
4
# $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.rc6.3,v 1.1 2010/04/06 02:11:35 mr_bones_ Exp $
5
5
6
opts="checkconfig reload"
6
extra_commands="checkconfig reload"
7
7
8
depend() {
8
depend() {
9
	# Make networking dependency conditional on configuration
9
	# Make networking dependency conditional on configuration
(-)init.d-original/tor (-1 / +1 lines)
Lines 3-9 Link Here
3
# Distributed under the terms of the GNU General Public License v2
3
# Distributed under the terms of the GNU General Public License v2
4
# $Header: /var/cvsroot/gentoo-x86/net-misc/tor/files/tor.initd-r6,v 1.3 2011/09/01 15:56:56 blueness Exp $
4
# $Header: /var/cvsroot/gentoo-x86/net-misc/tor/files/tor.initd-r6,v 1.3 2011/09/01 15:56:56 blueness Exp $
5
5
6
opts="${opts} checkconfig checkvarrun reload"
6
extra_commands="${extra_commands} checkconfig checkvarrun reload"
7
PIDDIR="/var/run/tor"
7
PIDDIR="/var/run/tor"
8
PIDFILE="${PIDDIR}/tor.pid"
8
PIDFILE="${PIDDIR}/tor.pid"
9
CONFFILE="/etc/tor/torrc"
9
CONFFILE="/etc/tor/torrc"
(-)init.d-original/udev (-3 / +3 lines)
Lines 90-102 Link Here
90
			eerror "Cannot load the unix domain socket module"
90
			eerror "Cannot load the unix domain socket module"
91
		fi
91
		fi
92
	fi
92
	fi
93
	local opts="${udev_opts}"
93
	local extra_commands="${udev_opts}"
94
94
95
	ebegin "Starting udevd"
95
	ebegin "Starting udevd"
96
	if yesno "${udev_debug:-no}"; then
96
	if yesno "${udev_debug:-no}"; then
97
		/sbin/udevd --daemon ${opts} --debug 2>/dev/.udev/udev.log
97
		/sbin/udevd --daemon ${extra_commands} --debug 2>/dev/.udev/udev.log
98
	else
98
	else
99
		start-stop-daemon --start --exec /sbin/udevd -- --daemon ${opts}
99
		start-stop-daemon --start --exec /sbin/udevd -- --daemon ${extra_commands}
100
	fi
100
	fi
101
101
102
	eend $?
102
	eend $?
(-)init.d-original/xinetd (-1 / +1 lines)
Lines 3-9 Link Here
3
# Distributed under the terms of the GNU General Public License v2
3
# Distributed under the terms of the GNU General Public License v2
4
# $Header: /var/cvsroot/gentoo-x86/sys-apps/xinetd/files/xinetd.rc6,v 1.19 2005/07/30 07:34:26 vapier Exp $
4
# $Header: /var/cvsroot/gentoo-x86/sys-apps/xinetd/files/xinetd.rc6,v 1.19 2005/07/30 07:34:26 vapier Exp $
5
5
6
opts="start stop reload restart dump check"
6
extra_commands="start stop reload restart dump check"
7
7
8
depend() {
8
depend() {
9
	use net
9
	use net

Return to bug 381527