Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 511624 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/local/portage/app-admin/webmin/files/init.d.webmin (-3 / +4 lines)
Lines 1-7 Link Here
1
#!/sbin/runscript
1
#!/sbin/runscript
2
# Copyright 1999-2012 Gentoo Foundation
2
# Copyright 1999-2012 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
# $Header: /var/cvsroot/gentoo-x86/app-admin/webmin/files/init.d.webmin,v 1.11 2012/07/09 18:12:47 hwoarang Exp $
4
# $Header: $
5
5
6
6
7
# We do not give a choice to user for configuring these 'cause it will mess up
7
# We do not give a choice to user for configuring these 'cause it will mess up
Lines 9-14 Link Here
9
WEBMIN_EXE="%exe%"
9
WEBMIN_EXE="%exe%"
10
WEBMIN_PID="%pid%"
10
WEBMIN_PID="%pid%"
11
WEBMIN_CONF="%conf%"
11
WEBMIN_CONF="%conf%"
12
WEBMIN_CONFIG="%config%"
12
13
13
extra_started_commands="reload"
14
extra_started_commands="reload"
14
15
Lines 18-25 Link Here
18
19
19
checkconfig() {
20
checkconfig() {
20
	# Check if Webmin setup has been done
21
	# Check if Webmin setup has been done
21
	if [ ! -f /etc/webmin/config ]; then
22
	if [ ! -f ${WEBMIN_CONFIG} ]; then
22
		eerror "Error in Webmin's configuration. The '/etc/webmin/config' is not present."
23
		eerror "Error in Webmin's configuration. The ${WEBMIN_CONFIG} is not present."
23
		eerror "Please run 'emerge --config app-admin/webmin' to fix this."
24
		eerror "Please run 'emerge --config app-admin/webmin' to fix this."
24
		return 1
25
		return 1
25
	fi
26
	fi

Return to bug 511624