Results 1 to 2 of 2

Thread: What's the significance of putting "start_services &" within a subshell?

  1. #1

    What's the significance of putting "start_services &" within a subshell?

    Hi

    I'm looking at the following command in the /etc/init.d/knoppix-autoconfig boot script:

    ( start_services & ) >/dev/tty"$LOG_CONSOLE" 2>&1 # Not in job list

    It is in the context of

    # Start services (especially /etc/rc.local) in background
    addtask "bg"; addprogress "Starting background services..."
    ( start_services & ) >/dev/tty"$LOG_CONSOLE" 2>&1 # Not in job list

    The "start_services" is a function within the "knoppix-autoconfig" script.

    Could you tell me what the significance is of putting the "start_services &"
    WITHIN A SUBSHELL (the (...) brackets)?

  2. #2
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    It's the way to get the the function "start_services" running in the background → "&".

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Vintage Apple Mac Classic II Computer RECAPPED Logic Board and Analog Board picture

Vintage Apple Mac Classic II Computer RECAPPED Logic Board and Analog Board

$549.99



USB Capture Card Adapter RCA S-Video Video Audio Analog Input Computer Recording picture

USB Capture Card Adapter RCA S-Video Video Audio Analog Input Computer Recording

$14.90



Recapped Analog Board for Apple Macintosh Classic/Classic II 630-0525 Working picture

Recapped Analog Board for Apple Macintosh Classic/Classic II 630-0525 Working

$231.05



27

27" AOC Widescreen LCD Wall Mountable Monitor E220SHE/1920 X 1080@60Hz/1,000:1

$90.00



Recapped Apple Macintosh Computer SE/30 SE Analog Board 630-0147 Works 820-0206B picture

Recapped Apple Macintosh Computer SE/30 SE Analog Board 630-0147 Works 820-0206B

$199.95



Capacitor Kit for Apple Macintosh Classic/Classic II Analog Board 630-0395 CAPS picture

Capacitor Kit for Apple Macintosh Classic/Classic II Analog Board 630-0395 CAPS

$29.94



Burr Brown Analog Computer parts Circuit boards w Helipot Potentiometers 1631a  picture

Burr Brown Analog Computer parts Circuit boards w Helipot Potentiometers 1631a

$110.00



Macintosh Classic/Classic II Analog Board Computer 630-0395 picture

Macintosh Classic/Classic II Analog Board Computer 630-0395

$149.95



Analog Monitor Splitter, PCT 218658 Video Splitter MW1D4 picture

Analog Monitor Splitter, PCT 218658 Video Splitter MW1D4

$12.00



Plextor ConvertX DVR for Macintosh Computer ( Model PX-TV402-NA/MAC) picture

Plextor ConvertX DVR for Macintosh Computer ( Model PX-TV402-NA/MAC)

$55.00