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
  •  


Cisco UCS 5108 Blade Server Chassis Enclosure N20-C6508 4x PSU 8x Fans 2x Fabric picture

Cisco UCS 5108 Blade Server Chassis Enclosure N20-C6508 4x PSU 8x Fans 2x Fabric

$139.99



Dell PowerEdge FX2s CTO Blade 4 Slot 2U Chassis 2x 2000W picture

Dell PowerEdge FX2s CTO Blade 4 Slot 2U Chassis 2x 2000W

$399.00



DELL PowerEdge M630 Blade 2x E5-2697v4 2.3GHz =36 Cores 64GB H330 2x10Gb X520 picture

DELL PowerEdge M630 Blade 2x E5-2697v4 2.3GHz =36 Cores 64GB H330 2x10Gb X520

$288.00



HP ProLiant BL460c Gen9 Blade 2x E5-2690v3 2.6GHz =24 Cores 128GB P246 650FLB picture

HP ProLiant BL460c Gen9 Blade 2x E5-2690v3 2.6GHz =24 Cores 128GB P246 650FLB

$282.00



HP ProLiant BL460c G9 Server Blade 2x Intel E5-2660v3 256GB RAM NO HDD picture

HP ProLiant BL460c G9 Server Blade 2x Intel E5-2660v3 256GB RAM NO HDD

$194.95



Dell PowerEdge M630 Blade Server 1x Xeon E5-2630 v3 CPU / Motherboard P/N 0R10KG picture

Dell PowerEdge M630 Blade Server 1x Xeon E5-2630 v3 CPU / Motherboard P/N 0R10KG

$69.98



HP Proliant BL460C Gen8 Blade Server 2x 8C E5-2690 192GB Ram picture

HP Proliant BL460C Gen8 Blade Server 2x 8C E5-2690 192GB Ram

$58.65



DELL POWEREDGE M630 BLADE SERVER 2X E5-2660 V3 2.60GHz 384GB RAM picture

DELL POWEREDGE M630 BLADE SERVER 2X E5-2660 V3 2.60GHz 384GB RAM

$399.96



DELL PEM640 POWEREDGE M640 BLADE SERVER picture

DELL PEM640 POWEREDGE M640 BLADE SERVER

$539.95



DELL PowerEdge M630 Blade 2x E5-2683v3 2.0GHz =28 Cores 128GB H330 2x10Gb X520 picture

DELL PowerEdge M630 Blade 2x E5-2683v3 2.0GHz =28 Cores 128GB H330 2x10Gb X520

$288.00