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
  •  


Mixed Lot of 10 - 500GB 3.5

Mixed Lot of 10 - 500GB 3.5" Desktop SATA Hard Drives

$48.00



WD My Passport 4TB Certified Refurbished Portable Hard Drive White picture

WD My Passport 4TB Certified Refurbished Portable Hard Drive White

$64.99



500 GB SATA 3.5

500 GB SATA 3.5" Desktop Hard Drives MIXED BRANDS Tested (6A4)

$5.99



WD My Passport 2TB Certified Refurbished Portable Hard Drive Blue picture

WD My Passport 2TB Certified Refurbished Portable Hard Drive Blue

$39.99



HUS726060ALA640 HGST ULTRASTAR 6TB 7.2K 6G LFF 3.5

HUS726060ALA640 HGST ULTRASTAR 6TB 7.2K 6G LFF 3.5" SATA ENTERPRISE HARD DRIVE

$40.00



Dell Seagate 1TB 6Gbps 7.2K 2.5'' SATA HDD 31N08 ST1000NX0423 *Not for Laptop* picture

Dell Seagate 1TB 6Gbps 7.2K 2.5'' SATA HDD 31N08 ST1000NX0423 *Not for Laptop*

$15.99



ST4000NM0033 SEAGATE CONSTELLATION ES.3 4TB 6G 7.2K LFF 3.5

ST4000NM0033 SEAGATE CONSTELLATION ES.3 4TB 6G 7.2K LFF 3.5" SATA HDD HARD DRIVE

$29.95



1TB HDD/SSD 2.5

1TB HDD/SSD 2.5" SATA Hard Drive Laptop with Windows 10 Pro Installed Legacy

$19.99



1TB HDD/SSD 2.5

1TB HDD/SSD 2.5" SATA Hard Drive Laptop with Windows 11 Pro Legacy Installed

$55.55



2TB Hitachi HUA722020ALA330 7.2K 3Gb/s SATA 3.5

2TB Hitachi HUA722020ALA330 7.2K 3Gb/s SATA 3.5" Hard Drive Disk

$19.85