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 Creative Labs SB0770 X-Fi Extreme Gamer PCI Sound Card picture

Vintage Creative Labs SB0770 X-Fi Extreme Gamer PCI Sound Card

$21.98



Z80 - NABU PC & Keyboard - Vintage New Old Stock (Retro 80's) picture

Z80 - NABU PC & Keyboard - Vintage New Old Stock (Retro 80's)

$139.99



Vintage Apple Color SyleWriter 2500 With Cables Macintosh - Powers Up- Untested picture

Vintage Apple Color SyleWriter 2500 With Cables Macintosh - Powers Up- Untested

$75.00



HP Card for Intelligent Graphics Terminal 02640-60033 CTU I/F vintage retro picture

HP Card for Intelligent Graphics Terminal 02640-60033 CTU I/F vintage retro

$45.00



Vintage Dazzle Multimedia MPEG Video Capture LAV-1000 RCA S-VIDEO to IEEE NOS picture

Vintage Dazzle Multimedia MPEG Video Capture LAV-1000 RCA S-VIDEO to IEEE NOS

$25.00



BlueSCSI V2 WiFi (Desktop) Modern Storage for Vintage Computers Latest Model picture

BlueSCSI V2 WiFi (Desktop) Modern Storage for Vintage Computers Latest Model

$53.50



Z80 - NABU PC & Keyboard - (With Issues) Vintage NOS (Retro 80's) picture

Z80 - NABU PC & Keyboard - (With Issues) Vintage NOS (Retro 80's)

$99.99



Vintage Contour Computer Mouse Medium Size M-38 picture

Vintage Contour Computer Mouse Medium Size M-38

$24.99



Lot of Vtg. IBM/Intel PC Motherboard / RAM Parts + VGA Card Socket 7 - UNTESTED picture

Lot of Vtg. IBM/Intel PC Motherboard / RAM Parts + VGA Card Socket 7 - UNTESTED

$45.00



DATAPOINT vintage PRINTER EXTREMELY clean MICROLINE 92 MADE IN JAPAN picture

DATAPOINT vintage PRINTER EXTREMELY clean MICROLINE 92 MADE IN JAPAN

$249.00