/[baselayout]/trunk/sbin/runscript.sh
Gentoo

Contents of /trunk/sbin/runscript.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2091 - (show annotations) (download) (as text)
Wed Jun 14 21:13:31 2006 UTC (8 years, 6 months ago) by uberlord
File MIME type: text/x-sh
File size: 18182 byte(s)
    {start,stop}_volumes moved to rc and halt.sh respectively.

    net services are now depended upon more correctly.
1 #!/bin/bash
2 # Copyright 1999-2006 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
4
5 # Common functions
6 [[ ${RC_GOT_FUNCTIONS} != "yes" ]] && source /sbin/functions.sh
7
8 # User must be root to run most script stuff (except status)
9 if [[ ${EUID} != "0" ]] && ! [[ $2 == "status" && $# -eq 2 ]] ; then
10 eerror "$0: must be root to run init scripts"
11 exit 1
12 fi
13
14 myscript="$1"
15 if [[ -L $1 && ! -L "/etc/init.d/${1##*/}" ]] ; then
16 SVCNAME="$(readlink "$1")"
17 else
18 SVCNAME="$1"
19 fi
20
21 declare -r SVCNAME="${SVCNAME##*/}"
22 export SVCNAME
23 # Support deprecated myservice variable
24 myservice="${SVCNAME}"
25
26 svc_trap() {
27 trap 'eerror "ERROR: ${SVCNAME} caught an interrupt"; exit 1' \
28 INT QUIT TSTP
29 }
30
31 # Setup a default trap
32 svc_trap
33
34 # coldplug events can trigger init scripts, but we don't want to run them
35 # until after rc sysinit has completed so we punt them to the boot runlevel
36 if [[ -e /dev/.rcsysinit ]] ; then
37 eerror "ERROR: cannot run ${SVCNAME} until sysinit completes"
38 [[ ${RC_COLDPLUG:-yes} != "yes" ]] && exit 1
39 set -f
40 for x in ${RC_PLUG_SERVICES} ; do
41 [[ ${SVCNAME} == ${x} ]] && break
42 [[ "!${SVCNAME}" == ${x} ]] && exit 1
43 done
44 eerror "${SVCNAME} will be started in the ${BOOTLEVEL} runlevel"
45 if [[ ! -L /dev/.rcboot/"${SVCNAME}" ]] ; then
46 [[ ! -d /dev/.rcboot ]] && mkdir /dev/.rcboot
47 ln -snf "$1" /dev/.rcboot/"${SVCNAME}"
48 fi
49 exit 1
50 fi
51
52 # Only hotplug if we're allowed to
53 if [[ ${IN_HOTPLUG} == "1" ]] ; then
54 if [[ ${RC_HOTPLUG:-yes} != "yes" ]] ; then
55 eerror "${SVCNAME} is not allowed to be hotplugged"
56 exit 1
57 fi
58
59 set -f
60 for x in ${RC_PLUG_SERVICES} ; do
61 [[ ${SVCNAME} == ${x} ]] && break
62 if [[ "!${SVCNAME}" == ${x} ]] ; then
63 eerror "${SVCNAME} is not allowed to be hotplugged"
64 exit 1
65 fi
66 done
67 set +f
68 fi
69
70 # State variables
71 svcpause="no"
72 svcrestart="no"
73
74 # Functions to handle dependencies and services
75 [[ ${RC_GOT_SERVICES} != "yes" ]] && source "${svclib}/sh/rc-services.sh"
76 # Functions to control daemons
77 [[ ${RC_GOT_DAEMON} != "yes" ]] && source "${svclib}/sh/rc-daemon.sh"
78
79 # Check if the textdomain is non-default
80 search_lang="${LC_ALL:-${LC_MESSAGES:-${LANG}}}"
81 [[ -f ${TEXTDOMAINDIR}/${search_lang%.*}/LC_MESSAGES/${myservice}.mo ]] \
82 && TEXTDOMAIN="${myservice}"
83
84 # Source configuration files.
85 # (1) Source /etc/conf.d/net if it is a net.* service
86 # (2) Source /etc/conf.d/${SVCNAME} to get initscript-specific
87 # configuration (if it exists).
88 # (3) Source /etc/rc.conf to pick up potentially overriding
89 # configuration, if the system administrator chose to put it
90 # there (if it exists).
91 if net_service "${SVCNAME}" ; then
92 conf="$(add_suffix /etc/conf.d/net)"
93 [[ -e ${conf} ]] && source "${conf}"
94 fi
95 conf="$(add_suffix "/etc/conf.d/${SVCNAME}")"
96 [[ -e ${conf} ]] && source "${conf}"
97 conf="$(add_suffix /etc/rc.conf)"
98 [[ -e ${conf} ]] && source "${conf}"
99
100 mylevel="${SOFTLEVEL}"
101 [[ ${SOFTLEVEL} == "${BOOTLEVEL}" \
102 || ${SOFTLEVEL} == "reboot" || ${SOFTLEVEL} == "shutdown" ]] \
103 && mylevel="${DEFAULTLEVEL}"
104
105 # Call svc_quit if we abort AND we have obtained a lock
106 service_started "${SVCNAME}"
107 svcstarted="$?"
108 service_inactive "${SVCNAME}"
109 svcinactive="$?"
110 svc_quit() {
111 eerror "ERROR: ${SVCNAME} caught an interrupt"
112 if service_inactive "${SVCNAME}" || [[ ${svcinactive} == "0" ]] ; then
113 mark_service_inactive "${SVCNAME}"
114 elif [[ ${svcstarted} == "0" ]] ; then
115 mark_service_started "${SVCNAME}"
116 else
117 mark_service_stopped "${SVCNAME}"
118 fi
119 exit 1
120 }
121
122 usage() {
123 local IFS="|"
124 myline="Usage: ${SVCNAME} { $* "
125 echo
126 eerror "${myline}}"
127 eerror " ${SVCNAME} without arguments for full help"
128 }
129
130 stop() {
131 # Return success so the symlink gets removed
132 return 0
133 }
134
135 start() {
136 eerror "ERROR: ${SVCNAME} does not have a start function."
137 # Return failure so the symlink doesn't get created
138 return 1
139 }
140
141 restart() {
142 svc_restart
143 }
144
145 status() {
146 # Dummy function
147 return 0
148 }
149
150 svc_schedule_start() {
151 local service="$1" start="$2"
152 [[ ! -d "${svcdir}/scheduled/${service}" ]] \
153 && mkdir -p "${svcdir}/scheduled/${service}"
154 [[ ! -e "${svcdir}/scheduled/${service}/${start}" ]] \
155 && ln -snf "/etc/init.d/${service}" \
156 "${svcdir}/scheduled/${service}/${start}"
157 }
158
159 svc_start_scheduled() {
160 [[ ! -d "${svcdir}/scheduled/${SVCNAME}" ]] && return
161 local x= services=
162
163 for x in $(dolisting "${svcdir}/scheduled/${SVCNAME}/") ; do
164 services="${services} ${x##*/}"
165 done
166
167 for x in ${services} ; do
168 service_stopped "${x}" && start_service "${x}"
169 rm -f "${svcdir}/scheduled/${SVCNAME}/${x}"
170 done
171
172 rmdir "${svcdir}/scheduled/${SVCNAME}"
173 }
174
175 svc_stop() {
176 local x= mydep= mydeps= retval=0
177 local -a servicelist=()
178
179 # Do not try to stop if it had already failed to do so
180 if is_runlevel_stop && service_failed "${SVCNAME}" ; then
181 return 1
182 elif service_stopped "${SVCNAME}" ; then
183 ewarn "WARNING: ${SVCNAME} has not yet been started."
184 return 0
185 fi
186 if ! mark_service_stopping "${SVCNAME}" ; then
187 eerror "ERROR: ${SVCNAME} is already stopping."
188 return 1
189 fi
190
191 # Ensure that we clean up if we abort for any reason
192 trap "svc_quit" INT QUIT TSTP
193
194 mark_service_starting "${SVCNAME}"
195 service_message "Service ${SVCNAME} stopping"
196
197 if in_runlevel "${SVCNAME}" "${BOOTLEVEL}" && \
198 [[ ${SOFTLEVEL} != "reboot" && ${SOFTLEVEL} != "shutdown" && \
199 ${SOFTLEVEL} != "single" ]] ; then
200 ewarn "WARNING: you are stopping a boot service."
201 fi
202
203 if [[ ${svcpause} != "yes" && ${RC_NO_DEPS} != "yes" ]] ; then
204 if net_service "${SVCNAME}" ; then
205 is_net_up || mydeps="net"
206 fi
207 mydeps="${mydeps} ${SVCNAME}"
208 fi
209
210 # Save the IN_BACKGROUND var as we need to clear it for stopping depends
211 local ib_save="${IN_BACKGROUND}"
212 unset IN_BACKGROUND
213
214 for mydep in ${mydeps} ; do
215 for x in $(needsme "${mydep}") ; do
216 service_started "${x}" && stop_service "${x}"
217 service_list=( "${service_list[@]}" "${x}" )
218 done
219 done
220
221 for x in "${service_list[@]}" ; do
222 # We need to test if the service has been marked stopped
223 # as the fifo may still be around if called by custom code
224 # such as postup from a net script.
225 service_stopped "${mynetservice}" && continue
226
227 wait_service "${x}"
228 if ! service_stopped "${x}" ; then
229 retval=1
230 break
231 fi
232 done
233
234 IN_BACKGROUND="${ib_save}"
235
236 if [[ ${retval} != "0" ]] ; then
237 eerror "ERROR: problems stopping dependent services."
238 eerror " ${SVCNAME} is still up."
239 else
240 # Now that deps are stopped, stop our service
241 (
242 exit() {
243 RC_QUIET_STDOUT="no"
244 eerror "DO NOT USE EXIT IN INIT.D SCRIPTS"
245 eerror "This IS a bug, please fix your broken init.d"
246 unset -f exit
247 exit "$@"
248 }
249 # Stop einfo/ebegin/eend from working as parallel messes us up
250 [[ ${RC_PARALLEL_STARTUP} == "yes" ]] && RC_QUIET_STDOUT="yes"
251 stop
252 )
253 retval="$?"
254
255 # If a service has been marked inactive, exit now as something
256 # may attempt to start it again later
257 if [[ ${retval} == "0" ]] && service_inactive "${SVCNAME}" ; then
258 svcinactive=0
259 return 0
260 fi
261 fi
262
263 if [[ ${retval} != 0 ]] ; then
264 # Did we fail to stop? create symlink to stop multible attempts at
265 # runlevel change. Note this is only used at runlevel change ...
266 is_runlevel_stop && mark_service_failed "${SVCNAME}"
267
268 # If we are halting the system, do it as cleanly as possible
269 if [[ ${SOFTLEVEL} == "reboot" || ${SOFTLEVEL} == "shutdown" ]] ; then
270 mark_service_stopped "${SVCNAME}"
271 else
272 if [[ ${svcinactive} == "0" ]] ; then
273 mark_service_inactive "${SVCNAME}"
274 else
275 mark_service_started "${SVCNAME}"
276 fi
277 fi
278
279 service_message "eerror" "ERROR: ${SVCNAME} failed to stop"
280 else
281 svcstarted=1
282 if service_inactive "${SVCNAME}" ; then
283 svcinactive=0
284 else
285 mark_service_stopped "${SVCNAME}"
286 fi
287 service_message "Service ${SVCNAME} stopped"
288 fi
289
290 # Reset the trap
291 svc_trap
292
293 return "${retval}"
294 }
295
296 svc_start() {
297 local x= y= retval=0 startfail= startinactive=
298
299 # Do not try to start if i have done so already on runlevel change
300 if is_runlevel_start && service_failed "${SVCNAME}" ; then
301 return 1
302 elif service_started "${SVCNAME}" ; then
303 ewarn "WARNING: ${SVCNAME} has already been started."
304 return 0
305 elif service_inactive "${SVCNAME}" ; then
306 if [[ ${IN_BACKGROUND} != "true" ]] ; then
307 ewarn "WARNING: ${SVCNAME} has already been started."
308 return 0
309 fi
310 fi
311
312 if ! mark_service_starting "${SVCNAME}" ; then
313 if service_stopping "${SVCNAME}" ; then
314 eerror "ERROR: ${SVCNAME} is already stopping."
315 else
316 eerror "ERROR: ${SVCNAME} is already starting."
317 fi
318 return 1
319 fi
320
321 # Ensure that we clean up if we abort for any reason
322 trap "svc_quit" INT QUIT TSTP
323
324 service_message "Service ${SVCNAME} starting"
325
326 if broken "${SVCNAME}" ; then
327 eerror "ERROR: Some services needed are missing. Run"
328 eerror " './${SVCNAME} broken' for a list of those"
329 eerror " services. ${SVCNAME} was not started."
330 retval=1
331 fi
332
333 # Save the IN_BACKGROUND var as we need to clear it for starting depends
334 local ib_save="${IN_BACKGROUND}"
335 unset IN_BACKGROUND
336
337 if [[ ${retval} == "0" && ${RC_NO_DEPS} != "yes" ]] ; then
338 local startupservices="$(ineed "${SVCNAME}") $(valid_iuse "${SVCNAME}")"
339 local netservices=
340 for x in $(dolisting "/etc/runlevels/${BOOTLEVEL}/net.*") \
341 $(dolisting "/etc/runlevels/${mylevel}/net.*") ; do
342 netservices="${netservices} ${x##*/}"
343 done
344
345 # Start dependencies, if any.
346 if ! is_runlevel_start ; then
347 for x in ${startupservices} ; do
348 if [[ ${x} == "net" ]] && ! net_service "${SVCNAME}" \
349 && ! is_net_up ; then
350 for y in ${netservices} ; do
351 service_stopped "${y}" && start_service "${y}"
352 done
353 elif [[ ${x} != "net" ]] ; then
354 if service_stopped "${x}" ; then
355 start_service "${x}"
356 fi
357 fi
358 done
359 fi
360
361 # We also wait for any services we're after to finish incase they
362 # have a "before" dep but we don't dep on them.
363 if is_runlevel_start ; then
364 startupservices="${startupservices} $(valid_iafter "${SVCNAME}")"
365 if net_service "${SVCNAME}" ; then
366 startupservices="${startupservices} $(valid_iafter "net")"
367 fi
368 fi
369
370 if [[ " ${startupservices} " == *" net "* ]] ; then
371 startupservices=" ${startupservices} "
372 startupservices="${startupservices/ net / ${netservices} }"
373 startupservices="${startupservices// net /}"
374 fi
375
376 # Wait for dependencies to finish.
377 for x in ${startupservices} ; do
378 service_started "${x}" && continue
379 wait_service "${x}"
380 if ! service_started "${x}" ; then
381 # A 'need' dependency is critical for startup
382 if ineed -t "${SVCNAME}" "${x}" >/dev/null \
383 || net_service "${x}" && ineed -t "${SVCNAME}" net \
384 && ! is_net_up ; then
385 if service_inactive "${x}" || service_wasinactive "${x}" || \
386 [[ -n $(ls "${svcdir}"/scheduled/*/"${x}" 2>/dev/null) ]] ; then
387 if svc_schedule_start "${x}" "${SVCNAME}" ; then
388 [[ -n ${startinactive} ]] && startinactive="${startinactive}, "
389 startinactive="${startinactive}${x}"
390 fi
391 else
392 startfail="${x}"
393 break
394 fi
395 fi
396 fi
397 done
398
399 if [[ -n ${startfail} ]] ; then
400 eerror "ERROR: Problem starting needed service ${startfail}"
401 eerror " ${SVCNAME} was not started."
402 retval=1
403 elif [[ -n ${startinactive} ]] ; then
404 # Change the last , to or for correct grammar.
405 x="${startinactive##*, }"
406 startinactive="${startinactive/%, ${x}/ or ${x}}"
407 ewarn "WARNING: ${SVCNAME} is scheduled to start when ${startinactive} has started."
408 retval=1
409 fi
410 fi
411
412 if [[ ${retval} == "0" ]] ; then
413 IN_BACKGROUND="${ib_save}"
414 (
415 exit() {
416 RC_QUIET_STDOUT="no"
417 eerror "DO NOT USE EXIT IN INIT.D SCRIPTS"
418 eerror "This IS a bug, please fix your broken init.d"
419 unset -f exit
420 exit "$@"
421 }
422
423 # Apply any ulimits if defined
424 [[ -n ${RC_ULIMIT} ]] && ulimit ${RC_ULIMIT}
425
426 # Stop einfo/ebegin/eend from working as parallel messes us up
427 [[ ${RC_PARALLEL_STARTUP} == "yes" ]] && RC_QUIET_STDOUT="yes"
428
429 start
430 )
431 retval="$?"
432
433 # If a service has been marked inactive, exit now as something
434 # may attempt to start it again later
435 if [[ ${retval} == "0" ]] && service_inactive "${SVCNAME}" ; then
436 svcinactive=0
437 service_message "ewarn" "WARNING: ${SVCNAME} has started but is inactive"
438 return 1
439 fi
440 fi
441
442 if [[ ${retval} != "0" ]] ; then
443 if [[ ${svcinactive} == "0" ]] ; then
444 mark_service_inactive "${SVCNAME}"
445 else
446 mark_service_stopped "${SVCNAME}"
447 fi
448
449 if [[ -z ${startinactive} ]] ; then
450 is_runlevel_start && mark_service_failed "${SVCNAME}"
451 service_message "eerror" "ERROR: ${SVCNAME} failed to start"
452 fi
453 else
454 svcstarted=0
455 mark_service_started "${SVCNAME}"
456 service_message "Service ${SVCNAME} started"
457 fi
458
459 # Reset the trap
460 svc_trap
461
462 return "${retval}"
463 }
464
465 svc_restart() {
466 if ! service_stopped "${SVCNAME}" ; then
467 svc_stop || return "$?"
468 fi
469 svc_start
470 }
471
472 svc_status() {
473 # The basic idea here is to have some sort of consistent
474 # output in the status() function which scripts can use
475 # as an generic means to detect status. Any other output
476 # should thus be formatted in the custom status() function
477 # to work with the printed " * status: foo".
478 local efunc="" state=""
479
480 # If we are effectively root, check to see if required daemons are running
481 # and update our status accordingly
482 [[ ${EUID} == 0 ]] && update_service_status "${SVCNAME}"
483
484 if service_stopping "${SVCNAME}" ; then
485 efunc="eerror"
486 state="stopping"
487 elif service_starting "${SVCNAME}" ; then
488 efunc="einfo"
489 state="starting"
490 elif service_inactive "${SVCNAME}" ; then
491 efunc="ewarn"
492 state="inactive"
493 elif service_started "${SVCNAME}" ; then
494 efunc="einfo"
495 state="started"
496 else
497 efunc="eerror"
498 state="stopped"
499 fi
500 [[ ${RC_QUIET_STDOUT} != "yes" ]] \
501 && ${efunc} "status: ${state}"
502
503 status
504 # Return 0 if started, otherwise 1
505 [[ ${state} == "started" ]]
506 }
507
508 rcscript_errors="$(bash -n "${myscript}" 2>&1)" || {
509 [[ -n ${rcscript_errors} ]] && echo "${rcscript_errors}" >&2
510 eerror "ERROR: ${myscript} has syntax errors in it; aborting ..."
511 exit 1
512 }
513
514 # set *after* wrap_rcscript, else we get duplicates.
515 opts="start stop restart"
516
517 source "${myscript}"
518
519 # make sure whe have valid $opts
520 if [[ -z ${opts} ]] ; then
521 opts="start stop restart"
522 fi
523
524 svc_homegrown() {
525 local x arg="$1"
526 shift
527
528 # Walk through the list of available options, looking for the
529 # requested one.
530 for x in ${opts} ; do
531 if [[ ${x} == "${arg}" ]] ; then
532 if typeset -F "${x}" &>/dev/null ; then
533 # Run the homegrown function
534 "${x}"
535
536 return $?
537 fi
538 fi
539 done
540 x=""
541
542 # If we're here, then the function wasn't in $opts.
543 [[ -n $* ]] && x="/ $* "
544 eerror "ERROR: wrong args ( "${arg}" ${x})"
545 # Do not quote this either ...
546 usage ${opts}
547 exit 1
548 }
549
550 shift
551 if [[ $# -lt 1 ]] ; then
552 eerror "ERROR: not enough args."
553 usage ${opts}
554 exit 1
555 fi
556 for arg in $* ; do
557 case "${arg}" in
558 --quiet)
559 RC_QUIET="yes"
560 RC_QUIET_STDOUT="yes"
561 ;;
562 # We check this in functions.sh ...
563 # --nocolor)
564 # RC_NOCOLOR="yes"
565 # ;;
566 --nodeps)
567 RC_NO_DEPS="yes"
568 ;;
569 --verbose)
570 RC_VERBOSE="yes"
571 ;;
572 esac
573 done
574
575 retval=0
576 for arg in $* ; do
577 case "${arg}" in
578 stop)
579 if [[ -e "${svcdir}/scheduled/${SVCNAME}" ]] ; then
580 rm -Rf "${svcdir}/scheduled/${SVCNAME}"
581 fi
582
583 # Stoped from the background - treat this as a restart so that
584 # stopped services come back up again when started.
585 if [[ ${IN_BACKGROUND} == "true" ]] ; then
586 rm -rf "${svcdir}/snapshot/$$"
587 mkdir -p "${svcdir}/snapshot/$$"
588 cp -pP "${svcdir}"/started/* "${svcdir}/snapshot/$$/"
589 rm -f "${svcdir}/snapshot/$$/${SVCNAME}"
590 fi
591
592 svc_stop
593 retval="$?"
594
595 if [[ ${IN_BACKGROUND} == "true" ]] ; then
596 for x in $(dolisting "${svcdir}/snapshot/$$/") ; do
597 if service_stopped "${x##*/}" ; then
598 svc_schedule_start "${SVCNAME}" "${x##*/}"
599 fi
600 done
601 else
602 rm -f "${svcdir}"/scheduled/*/"${SVCNAME}"
603 fi
604
605 ;;
606 start)
607 svc_start
608 retval="$?"
609 service_started "${SVCNAME}" && svc_start_scheduled
610 ;;
611 needsme|ineed|usesme|iuse|broken)
612 trace_dependencies "-${arg}"
613 ;;
614 status)
615 svc_status
616 retval="$?"
617 ;;
618 zap)
619 einfo "Manually resetting ${SVCNAME} to stopped state."
620 mark_service_stopped "${SVCNAME}"
621 ;;
622 restart)
623 svcrestart="yes"
624
625 # We don't kill child processes if we're restarting
626 # This is especically important for sshd ....
627 RC_KILL_CHILDREN="no"
628
629 # Create a snapshot of started services
630 rm -rf "${svcdir}/snapshot/$$"
631 mkdir -p "${svcdir}/snapshot/$$"
632 cp -pP "${svcdir}"/started/* "${svcdir}/snapshot/$$/"
633 rm -f "${svcdir}/snapshot/$$/${SVCNAME}"
634
635 # Simple way to try and detect if the service use svc_{start,stop}
636 # to restart if it have a custom restart() funtion.
637 if [[ -n $(egrep '^[[:space:]]*restart[[:space:]]*()' "/etc/init.d/${SVCNAME}") ]] ; then
638 if [[ -z $(egrep 'svc_stop' "/etc/init.d/${SVCNAME}") || \
639 -z $(egrep 'svc_start' "/etc/init.d/${SVCNAME}") ]] ; then
640 echo
641 ewarn "Please use 'svc_stop; svc_start' and not 'stop; start' to"
642 ewarn "restart the service in its custom 'restart()' function."
643 ewarn "Run ${SVCNAME} without arguments for more info."
644 echo
645 svc_restart
646 else
647 restart
648 fi
649 else
650 restart
651 fi
652 retval="$?"
653
654 [[ -e "${svcdir}/scheduled/${SVCNAME}" ]] \
655 && rm -Rf "${svcdir}/scheduled/${SVCNAME}"
656
657 # Restart dependencies as well
658 for x in $(dolisting "${svcdir}/snapshot/$$/") ; do
659 if service_stopped "${x##*/}" ; then
660 if service_inactive "${SVCNAME}" \
661 || service_wasinactive "${SVCNAME}" ; then
662 svc_schedule_start "${SVCNAME}" "${x##*/}"
663 ewarn "WARNING: ${x##*/} is scheduled to start when ${SVCNAME} has started."
664 elif service_started "${SVCNAME}" ; then
665 start_service "${x##*/}"
666 fi
667 fi
668 done
669 rm -rf "${svcdir}/snapshot/$$"
670
671 service_started "${SVCNAME}" && svc_start_scheduled
672
673 # Wait for services to come up
674 [[ ${RC_PARALLEL_STARTUP} == "yes" ]] && wait
675
676 svcrestart="no"
677 ;;
678 pause)
679 svcpause="yes"
680 svc_stop
681 retval="$?"
682 svcpause="no"
683 ;;
684 --quiet|--nocolor|--nodeps)
685 ;;
686 help)
687 exec "${svclib}"/sh/rc-help.sh "${myscript}" help
688 ;;
689 *)
690 # Allow for homegrown functions
691 svc_homegrown ${arg}
692 retval="$?"
693 ;;
694 esac
695 done
696
697 exit "${retval}"
698
699 # vim:ts=4

Properties

Name Value
svn:eol-style native
svn:executable *
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.20