summaryrefslogtreecommitdiff
blob: 3394a323a07a2cf037926f2b72e5fdc51ee2294f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
--- baselayout-1.12.5/etc/env.d/00basic
+++ baselayout-1.12.5/etc/env.d/00basic
@@ -1,10 +1,11 @@
-# /etc/env.d/00basic
+# @GENTOO_PORTAGE_EPREFIX@/etc/env.d/00basic
 
-PATH="/opt/bin"
-ROOTPATH="/opt/bin"
-LDPATH="/usr/local/lib"
-MANPATH="/usr/local/share/man:/usr/share/man"
-INFOPATH="/usr/share/info"
+# in prefix we have sbin variants in user path!
+PATH="@GENTOO_PORTAGE_EPREFIX@/opt/bin:@GENTOO_PORTAGE_EPREFIX@/usr/sbin:@GENTOO_PORTAGE_EPREFIX@/sbin"
+ROOTPATH="@GENTOO_PORTAGE_EPREFIX@/opt/bin"
+LDPATH="@GENTOO_PORTAGE_EPREFIX@/usr/local/lib"
+MANPATH="@GENTOO_PORTAGE_EPREFIX@/usr/share/man"
+INFOPATH="@GENTOO_PORTAGE_EPREFIX@/usr/share/info"
 CVS_RSH="ssh"
-PAGER="/usr/bin/less"
+PAGER="@GENTOO_PORTAGE_EPREFIX@/usr/bin/less"
 LESSOPEN="|lesspipe.sh %s"
--- baselayout-1.12.5/sbin/env-update.sh
+++ baselayout-1.12.5/sbin/env-update.sh
@@ -1,10 +1,10 @@
-#!/bin/bash
+#!@GENTOO_PORTAGE_EPREFIX@/bin/bash
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-source /sbin/functions.sh || exit 1
+source "@GENTOO_PORTAGE_EPREFIX@"/sbin/functions.sh || exit 1
 
-if [[ ${EUID} != "0" ]] ; then
+if [[ ${EPREFIX/\//} == "" ]] && [[ ${EUID} != "0" ]] ; then
 	eerror "$0: must be root."
 	exit 1
 fi
@@ -13,8 +13,8 @@
 echo "usage: env-update.sh
 
 note:
-      This utility generates /etc/profile.env and /etc/csh.env
-      from the contents of /etc/env.d/
+      This utility generates @GENTOO_PORTAGE_EPREFIX@/etc/profile.env and @GENTOO_PORTAGE_EPREFIX@/etc/csh.env
+      from the contents of @GENTOO_PORTAGE_EPREFIX@/etc/env.d/
 "
 	exit 1
 }
@@ -30,9 +30,9 @@
 if [[ $# != "0" ]] ; then
 	usage
 else
-	/bin/gawk \
-		-f /lib/rcscripts/awk/functions.awk \
-		-f /lib/rcscripts/awk/genenviron.awk
+	"@GENTOO_PORTAGE_EPREFIX@"/bin/gawk \
+		-f "@GENTOO_PORTAGE_EPREFIX@"/lib/rcscripts/awk/functions.awk \
+		-f "@GENTOO_PORTAGE_EPREFIX@"/lib/rcscripts/awk/genenviron.awk
 fi
 
 # vim:ts=4
--- baselayout-1.12.5/sbin/functions.sh
+++ baselayout-1.12.5/sbin/functions.sh
@@ -4,11 +4,11 @@
 RC_GOT_FUNCTIONS="yes"
 
 # Override defaults with user settings ...
-[[ -f /etc/conf.d/rc ]] && source /etc/conf.d/rc
+[[ -f @GENTOO_PORTAGE_EPREFIX@/etc/conf.d/rc ]] && source "@GENTOO_PORTAGE_EPREFIX@"/etc/conf.d/rc
 
 # Check /etc/conf.d/rc for a description of these ...
-declare -r svclib="/lib/rcscripts"
-declare -r svcdir="${svcdir:-/var/lib/init.d}"
+declare -r svclib="@GENTOO_PORTAGE_EPREFIX@/lib/rcscripts"
+declare -r svcdir="${svcdir:-@GENTOO_PORTAGE_EPREFIX@/var/lib/init.d}"
 svcmount="${svcmount:-no}"
 svcfstype="${svcfstype:-tmpfs}"
 svcsize="${svcsize:-1024}"
@@ -83,7 +84,7 @@
 }
 # This will override the splash() function...
 if ! import_addon splash-functions.sh ; then
-	[[ -f /sbin/splash-functions.sh ]] && source /sbin/splash-functions.sh
+	[[ -f @GENTOO_PORTAGE_EPREFIX@/sbin/splash-functions.sh ]] && source "@GENTOO_PORTAGE_EPREFIX@"/sbin/splash-functions.sh
 fi
 
 # void profiling(...)
@@ -114,8 +115,8 @@
 	local newbootlevel=
 	local newsoftlevel=
 
-	if [[ -r /proc/cmdline ]] ; then
-		for copt in $(</proc/cmdline) ; do
+	if [[ -r @GENTOO_PORTAGE_EPREFIX@/proc/cmdline ]] ; then
+		for copt in $(<"@GENTOO_PORTAGE_EPREFIX@"/proc/cmdline) ; do
 			case "${copt%=*}" in
 				bootlevel)
 					newbootlevel="${copt##*=}"
@@ -153,8 +154,8 @@
 	fi
 
 	if [[ ${RC_USE_CONFIG_PROFILE} == "yes" && -n ${DEFAULTLEVEL} ]] && \
-	   [[ -d "/etc/runlevels/${BOOTLEVEL}.${DEFAULTLEVEL}" || \
-	      -L "/etc/runlevels/${BOOTLEVEL}.${DEFAULTLEVEL}" ]] ; then
+	   [[ -d "@GENTOO_PORTAGE_EPREFIX@/etc/runlevels/${BOOTLEVEL}.${DEFAULTLEVEL}" || \
+	      -L "@GENTOO_PORTAGE_EPREFIX@/etc/runlevels/${BOOTLEVEL}.${DEFAULTLEVEL}" ]] ; then
 		export BOOTLEVEL="${BOOTLEVEL}.${DEFAULTLEVEL}"
 	fi
 
@@ -176,8 +177,8 @@
 get_libdir() {
 	if [[ -n ${CONF_LIBDIR_OVERRIDE} ]] ; then
 		CONF_LIBDIR="${CONF_LIBDIR_OVERRIDE}"
-	elif [[ -x /usr/bin/portageq ]] ; then
-		CONF_LIBDIR="$(/usr/bin/portageq envvar CONF_LIBDIR)"
+	elif [[ -x @GENTOO_PORTAGE_EPREFIX@/usr/bin/portageq ]] ; then
+		CONF_LIBDIR="$("@GENTOO_PORTAGE_EPREFIX@"/usr/bin/portageq envvar CONF_LIBDIR)"
 	fi
 	echo "${CONF_LIBDIR:=lib}"
 }
@@ -190,14 +191,14 @@
 	local pri=
 	local tag=
 
-	if [[ -x /usr/bin/logger ]] ; then
+	if [[ -x @GENTOO_PORTAGE_EPREFIX@/usr/bin/logger ]] ; then
 		pri="$1"
 		tag="$2"
 
 		shift 2
 		[[ -z "$*" ]] && return 0
 
-		/usr/bin/logger -p "${pri}" -t "${tag}" -- "$*"
+		"@GENTOO_PORTAGE_EPREFIX@"/usr/bin/logger -p "${pri}" -t "${tag}" -- "$*"
 	fi
 
 	return 0
@@ -269,7 +270,7 @@
 	fi
 
 	local name="rc-scripts"
-	[[ $0 != "/sbin/runscript.sh" ]] && name="${0##*/}"
+	[[ $0 != "@GENTOO_PORTAGE_EPREFIX@/sbin/runscript.sh" ]] && name="${0##*/}"
 	# Log warnings to system log
 	esyslog "daemon.warning" "${name}" "$*"
 
@@ -290,7 +291,7 @@
 	fi
 
 	local name="rc-scripts"
-	[[ $0 != "/sbin/runscript.sh" ]] && name="${0##*/}"
+	[[ $0 != "@GENTOO_PORTAGE_EPREFIX@/sbin/runscript.sh" ]] && name="${0##*/}"
 	# Log errors to system log
 	esyslog "daemon.err" "rc-scripts" "$*"
 
@@ -488,9 +489,9 @@
 get_bootparam() {
 	local x copt params retval=1
 
-	[[ ! -r /proc/cmdline ]] && return 1
+	[[ ! -r @GENTOO_PORTAGE_EPREFIX@/proc/cmdline ]] && return 1
 
-	for copt in $(< /proc/cmdline) ; do
+	for copt in $(< "@GENTOO_PORTAGE_EPREFIX@"/proc/cmdline) ; do
 		if [[ ${copt%=*} == "gentoo" ]] ; then
 			params=$(gawk -v PARAMS="${copt##*=}" '
 				BEGIN {
@@ -583,8 +584,8 @@
 #    get the version of baselayout that this system is running
 #
 get_base_ver() {
-	[[ ! -r /etc/gentoo-release ]] && return 0
-	local ver="$(</etc/gentoo-release)"
+	[[ ! -r @GENTOO_PORTAGE_EPREFIX@/etc/gentoo-release ]] && return 0
+	local ver="$(<"@GENTOO_PORTAGE_EPREFIX@"/etc/gentoo-release)"
 	echo "${ver##* }"
 }
 
@@ -602,8 +603,8 @@
 is_net_fs() {
 	local fstype
 	# /proc/mounts is always accurate but may not always be available
-	if [[ -e /proc/mounts ]] ; then
-		fstype="$( sed -n -e '/^rootfs/!s:.* '"$1"' \([^ ]*\).*:\1:p' /proc/mounts )"
+	if [[ -e @GENTOO_PORTAGE_EPREFIX@/proc/mounts ]] ; then
+		fstype="$( sed -n -e '/^rootfs/!s:.* '"$1"' \([^ ]*\).*:\1:p' "@GENTOO_PORTAGE_EPREFIX@"/proc/mounts )"
 	else
 		fstype="$( mount | sed -n -e 's:.* on '"$1"' type \([^ ]*\).*:\1:p' )"
 	fi
@@ -618,7 +619,7 @@
 #   EXAMPLE:  if is_union_fs / ; then ...
 #
 is_union_fs() {
-	[[ ! -x /sbin/unionctl ]] && return 1
+	[[ ! -x @GENTOO_PORTAGE_EPREFIX@/sbin/unionctl ]] && return 1
 	unionctl "$1" --list &>/dev/null
 }
 
@@ -629,7 +630,7 @@
 #   EXAMPLE:  if is_uml_sys ; then ...
 #
 is_uml_sys() {
-	grep -qs 'UML' /proc/cpuinfo
+	grep -qs 'UML' "@GENTOO_PORTAGE_EPREFIX@"/proc/cpuinfo
 }
 
 # bool is_vserver_sys()
@@ -639,7 +640,7 @@
 #   EXAMPLE:  if is_vserver_sys ; then ...
 #
 is_vserver_sys() {
-	grep -qs '^s_context:[[:space:]]*[1-9]' /proc/self/status
+	grep -qs '^s_context:[[:space:]]*[1-9]' "@GENTOO_PORTAGE_EPREFIX@"/proc/self/status
 }
 
 # bool is_xenU_sys()
@@ -649,9 +650,9 @@
 #   EXAMPLE:  if is_xenU_sys ; then ...
 #
 is_xenU_sys() {
-	[[ ! -d /proc/xen ]] && return 1
-	[[ ! -r /proc/xen/capabilities ]] && return 1
-	grep -q "control_d" /proc/xen/capabilities && return 1
+	[[ ! -d "@GENTOO_PORTAGE_EPREFIX@"/proc/xen ]] && return 1
+	[[ ! -r "@GENTOO_PORTAGE_EPREFIX@"/proc/xen/capabilities ]] && return 1
+	grep -q "control_d" "@GENTOO_PORTAGE_EPREFIX@"/proc/xen/capabilities && return 1
 	return 0
 }
 
@@ -667,7 +668,7 @@
 	gawk '$1 ~ "^#" { next }
 	     $2 == "'$*'" { stab="-t "$3" -o "$4" "$1" "$2; }
 	     END { print stab; }
-	' /etc/fstab
+	' "@GENTOO_PORTAGE_EPREFIX@"/etc/fstab
 }
 
 # char *reverse_list(list)
@@ -771,13 +772,13 @@
 	# Setup a basic $PATH.  Just add system default to existing.
 	# This should solve both /sbin and /usr/sbin not present when
 	# doing 'su -c foo', or for something like:  PATH= rcscript start
-	PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:${PATH}"
+	PATH="@GENTOO_PORTAGE_EPREFIX@/bin:@GENTOO_PORTAGE_EPREFIX@/sbin:@GENTOO_PORTAGE_EPREFIX@/usr/bin:@GENTOO_PORTAGE_EPREFIX@/usr/sbin:@GENTOO_PORTAGE_EPREFIX@/usr/local/sbin:${PATH}"
 
 	# Cache the CONSOLETYPE - this is important as backgrounded shells don't
 	# have a TTY. rc unsets it at the end of running so it shouldn't hang
 	# around
 	if [[ -z ${CONSOLETYPE} ]] ; then
-		export CONSOLETYPE="$( /sbin/consoletype 2>/dev/null )"
+		export CONSOLETYPE="$( "@GENTOO_PORTAGE_EPREFIX@"/sbin/consoletype 2>/dev/null )"
 	fi
 	if [[ ${CONSOLETYPE} == "serial" ]] ; then
 		RC_NOCOLOR="yes"
@@ -797,7 +798,7 @@
 
 	# If we are not /sbin/rc then ensure that we cannot change level variables
 	if [[ -n ${BASH_SOURCE} \
-		&& ${BASH_SOURCE[${#BASH_SOURCE[@]}-1]} != "/sbin/rc" ]] ; then
+		&& ${BASH_SOURCE[${#BASH_SOURCE[@]}-1]} != "@GENTOO_PORTAGE_EPREFIX@/sbin/rc" ]] ; then
 		declare -r BOOTLEVEL DEFAULTLEVEL SOFTLEVEL
 	fi
 else
--- baselayout-1.12.5/etc/profile
+++ baselayout-1.12.5/etc/profile
@@ -1,4 +1,4 @@
-# /etc/profile: login shell setup
+# @GENTOO_PORTAGE_EPREFIX@/etc/profile: login shell setup
 #
 # That this file is used by any Bourne-shell derivative to setup the
 # environment for login shells.
@@ -6,8 +6,8 @@
 
 # Load environment settings from profile.env, which is created by
 # env-update from the files in /etc/env.d
-if [ -e /etc/profile.env ] ; then
-	. /etc/profile.env
+if [ -e "@GENTOO_PORTAGE_EPREFIX@"/etc/profile.env ] ; then
+	. "@GENTOO_PORTAGE_EPREFIX@"/etc/profile.env
 fi
 
 # 077 would be more secure, but 022 is generally quite realistic
@@ -22,23 +22,23 @@
 # This way the evaluation can be short-circuited and calling whoami is
 # avoided.
 if [ "$EUID" = "0" ] || [ "$USER" = "root" ] ; then
-	PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${ROOTPATH}"
+	PATH="@GENTOO_PORTAGE_EPREFIX@/usr/sbin:@GENTOO_PORTAGE_EPREFIX@/usr/bin:@GENTOO_PORTAGE_EPREFIX@/sbin:@GENTOO_PORTAGE_EPREFIX@/bin:${ROOTPATH}:/usr/sbin:/usr/bin:/sbin:/bin"
 else
-	PATH="/usr/local/bin:/usr/bin:/bin:${PATH}"
+	PATH="@GENTOO_PORTAGE_EPREFIX@/usr/bin:@GENTOO_PORTAGE_EPREFIX@/bin:${PATH}:/usr/bin:/bin"
 fi
 export PATH
 unset ROOTPATH
 
 # Extract the value of EDITOR
-[ -z "$EDITOR" ] && EDITOR="`. /etc/rc.conf 2>/dev/null; echo $EDITOR`"
-[ -z "$EDITOR" ] && EDITOR="/bin/nano"
+[ -z "$EDITOR" ] && EDITOR="`. @GENTOO_PORTAGE_EPREFIX@/etc/rc.conf 2>/dev/null; echo $EDITOR`"
+[ -z "$EDITOR" ] && EDITOR="@GENTOO_PORTAGE_EPREFIX@/bin/nano"
 export EDITOR
 
 if [ -n "${BASH_VERSION}" ] ; then
 	# Newer bash ebuilds include /etc/bash/bashrc which will setup PS1
 	# including color.  We leave out color here because not all
 	# terminals support it.
-	if [ -f /etc/bash/bashrc ] ; then
+	if [ -f "@GENTOO_PORTAGE_EPREFIX@"/etc/bash/bashrc ] ; then
 		# Bash login shells run only /etc/profile
 		# Bash non-login shells run only /etc/bash/bashrc
 		# Since we want to run /etc/bash/bashrc regardless, we source it 
@@ -46,7 +46,7 @@
 		# this *after* the user's .bash_profile runs (without putting 
 		# it in the user's dot-files), but it shouldn't make any 
 		# difference.
-		. /etc/bash/bashrc
+		. "@GENTOO_PORTAGE_EPREFIX@"/etc/bash/bashrc
 	else
 		PS1='\u@\h \w \$ '
 	fi
@@ -57,7 +57,7 @@
 	PS1="`whoami`@`uname -n | cut -f1 -d.` \$ "
 fi
 
-for sh in /etc/profile.d/*.sh ; do
+for sh in "@GENTOO_PORTAGE_EPREFIX@"/etc/profile.d/*.sh ; do
 	if [ -r "$sh" ] ; then
 		. "$sh"
 	fi
--- baselayout-1.12.5/sbin/runscript.sh~	2006-09-14 12:11:34 +0200
+++ baselayout-1.12.5/sbin/runscript.sh	2007-10-06 13:28:40 +0200
@@ -1,18 +1,18 @@
-#!/bin/bash
+#!@GENTOO_PORTAGE_EPREFIX@/bin/bash
 # Copyright 1999-2006 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 # Common functions
-[[ ${RC_GOT_FUNCTIONS} != "yes" ]] && source /sbin/functions.sh
+[[ ${RC_GOT_FUNCTIONS} != "yes" ]] && source @GENTOO_PORTAGE_EPREFIX@/sbin/functions.sh
 
-# User must be root to run most script stuff (except status)
-if [[ ${EUID} != "0" ]] && ! [[ $2 == "status" && $# -eq 2 ]] ; then
-	eerror "$0: must be root to run init scripts"
-	exit 1
-fi
+## User must be root to run most script stuff (except status)
+#if [[ ${EUID} != "0" ]] && ! [[ $2 == "status" && $# -eq 2 ]] ; then
+#    eerror "$0: must be root to run init scripts"
+#    exit 1
+#fi
 
 myscript="$1"
-if [[ -L $1 && ! -L "/etc/init.d/${1##*/}" ]] ; then
+if [[ -L $1 && ! -L "@GENTOO_PORTAGE_EPREFIX@/etc/init.d/${1##*/}" ]] ; then
 	SVCNAME="$(readlink "$1")"
 else
 	SVCNAME="$1"
@@ -84,12 +84,12 @@
 #     configuration, if the system administrator chose to put it
 #     there (if it exists).
 if net_service "${SVCNAME}" ; then
-	conf="$(add_suffix /etc/conf.d/net)"
+	conf="$(add_suffix @GENTOO_PORTAGE_EPREFIX@/etc/conf.d/net)"
 	[[ -e ${conf} ]] && source "${conf}"
 fi
-conf="$(add_suffix "/etc/conf.d/${SVCNAME}")"
+conf="$(add_suffix "@GENTOO_PORTAGE_EPREFIX@/etc/conf.d/${SVCNAME}")"
 [[ -e ${conf} ]] && source "${conf}"
-conf="$(add_suffix /etc/rc.conf)"
+conf="$(add_suffix @GENTOO_PORTAGE_EPREFIX@/etc/rc.conf)"
 [[ -e ${conf} ]] && source "${conf}"
 
 mylevel="${SOFTLEVEL}"
@@ -146,7 +146,7 @@
 	local service="$1" start="$2"
 	[[ ! -d "${svcdir}/scheduled/${service}" ]] \
 		&& mkdir -p "${svcdir}/scheduled/${service}"
-	ln -snf "/etc/init.d/${service}" \
+	ln -snf "@GENTOO_PORTAGE_EPREFIX@/etc/init.d/${service}" \
 		"${svcdir}/scheduled/${service}/${start}"
 }
 
@@ -334,9 +334,9 @@
 	if [[ ${retval} == "0" && ${RC_NO_DEPS} != "yes" ]] ; then
 		local startupservices="$(ineed "${SVCNAME}") $(valid_iuse "${SVCNAME}")"
 		local netservices=
-		for x in $(dolisting "/etc/runlevels/${BOOTLEVEL}/net.*") \
-			$(dolisting "/etc/runlevels/${mylevel}/net.*") \
-			$(dolisting "/var/lib/init.d/coldplugged/net.*") ; do 
+		for x in $(dolisting "@GENTOO_PORTAGE_EPREFIX@/etc/runlevels/${BOOTLEVEL}/net.*") \
+			$(dolisting "@GENTOO_PORTAGE_EPREFIX@/etc/runlevels/${mylevel}/net.*") \
+			$(dolisting "@GENTOO_PORTAGE_EPREFIX@/var/lib/init.d/coldplugged/net.*") ; do 
 			netservices="${netservices} ${x##*/}"
 		done
 
@@ -631,9 +631,9 @@
 
 		# Simple way to try and detect if the service use svc_{start,stop}
 		# to restart if it have a custom restart() funtion.
-		if [[ -n $(egrep '^[[:space:]]*restart[[:space:]]*()' "/etc/init.d/${SVCNAME}") ]] ; then
-			if [[ -z $(egrep 'svc_stop' "/etc/init.d/${SVCNAME}") || \
-			      -z $(egrep 'svc_start' "/etc/init.d/${SVCNAME}") ]] ; then
+		if [[ -n $(egrep '^[[:space:]]*restart[[:space:]]*()' "@GENTOO_PORTAGE_EPREFIX@/etc/init.d/${SVCNAME}") ]] ; then
+			if [[ -z $(egrep 'svc_stop' "@GENTOO_PORTAGE_EPREFIX@/etc/init.d/${SVCNAME}") || \
+			      -z $(egrep 'svc_start' "@GENTOO_PORTAGE_EPREFIX@/etc/init.d/${SVCNAME}") ]] ; then
 				echo
 				ewarn "Please use 'svc_stop; svc_start' and not 'stop; start' to"
 				ewarn "restart the service in its custom 'restart()' function."