View | Details | Raw Unified | Return to bug 206511
Collapse All | Expand All

(-)service 2021-09-30 10:40:48.593156000 +0200 (-1 / +9 lines)
Lines 45-55 Link Here
45
       echo "-R        Stop and start enabled $local_startup services"
45
       echo "-R        Stop and start enabled $local_startup services"
46
       echo "-l        List all scripts in /etc/rc.d and $local_startup"
46
       echo "-l        List all scripts in /etc/rc.d and $local_startup"
47
       echo '-r        Show the results of boot time rcorder'
47
       echo '-r        Show the results of boot time rcorder'
48
       echo '-q        Quiet mode'
48
       echo '-v        Verbose'
49
       echo '-v        Verbose'
49
       echo ''
50
       echo ''
50
}
51
}
51
while getopts 'j:ehlrRv' COMMAND_LINE_ARGUMENT ; do
52
while getopts 'j:ehlrRqv' COMMAND_LINE_ARGUMENT ; do
52
       case "${COMMAND_LINE_ARGUMENT}" in
53
       case "${COMMAND_LINE_ARGUMENT}" in
53
       j)      JAIL="${OPTARG}" ;;
54
       j)      JAIL="${OPTARG}" ;;
54
       e)      ENABLED=eopt ;;
55
       e)      ENABLED=eopt ;;
Lines 58-67 Link Here
58
       r)      RCORDER=ropt ;;
59
       r)      RCORDER=ropt ;;
59
       R)      RESTART=Ropt ;;
60
       R)      RESTART=Ropt ;;
60
       v)      VERBOSE=vopt ;;
61
       v)      VERBOSE=vopt ;;
62
       q)      QUIET=qopt ;;
61
       *)      usage ; exit 1 ;;
63
       *)      usage ; exit 1 ;;
62
       esac
64
       esac
63
done
65
done
64
shift $(( $OPTIND - 1 ))
66
shift $(( $OPTIND - 1 ))
67
68
if [ -n "${QUIET}" ]; then
69
       warn () {
70
               echo -n
71
       }
72
fi
65
if [ -n "${JAIL}" ]; then
73
if [ -n "${JAIL}" ]; then
66
       # We need to rebuild the command line before passing it on.
74
       # We need to rebuild the command line before passing it on.

Return to bug 206511