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 GENUINE APPLE MACINTOSH SOFT SIDED PADDED CARRY BAG CASE EARLY 1990s picture

VINTAGE GENUINE APPLE MACINTOSH SOFT SIDED PADDED CARRY BAG CASE EARLY 1990s

$248.76



Apple Macintosh SE Model M5011 Vintage Mac Computer | For Parts or Repair picture

Apple Macintosh SE Model M5011 Vintage Mac Computer | For Parts or Repair

$99.00



Vintage Apple Macintosh Computer Modem A9M0300 picture

Vintage Apple Macintosh Computer Modem A9M0300

$65.00



Vintage Macintosh Canvas Carry-On Bag Rainbow Apple (2 of 4) picture

Vintage Macintosh Canvas Carry-On Bag Rainbow Apple (2 of 4)

$29.99



Vintage Apple Macintosh LC II Desktop Computer M1700 picture

Vintage Apple Macintosh LC II Desktop Computer M1700

$149.00



Working Vintage Apple M2453 iBook G3 Clamshell Blueberry  RAM Mac OS 9 picture

Working Vintage Apple M2453 iBook G3 Clamshell Blueberry RAM Mac OS 9

$230.00



Vintage 1988 Macintosh SE Apple Computer picture

Vintage 1988 Macintosh SE Apple Computer

$200.00



Vintage Apple Mac OS8 Mouse Pad NOS picture

Vintage Apple Mac OS8 Mouse Pad NOS

$26.99



APPLE MACINTOSH PLUS M0001A Vintage Mac Computer Tested Working picture

APPLE MACINTOSH PLUS M0001A Vintage Mac Computer Tested Working

$799.99



Apple Power Macintosh G4 Vintage Mac M5183 PowerPC 7400 768MB RAM NO HDD/OS picture

Apple Power Macintosh G4 Vintage Mac M5183 PowerPC 7400 768MB RAM NO HDD/OS

$94.99